|
|
Sample Programs from NeXSTEP 3.3
# # Makefile for /NextDeveloper/Examples/EnterpriseObjects # # You can copy all of the examples to your home directory by # cd'ing in a Terminal to this directory and typing # # make installsrc SRCROOT=$HOME/eofexamples # # where $HOME is assumed to expand to your home directory. # Then you can make them all by cd'ing to ~/eofexamples and typing # # make all DSTDIR = /NextDeveloper/Examples/EnterpriseObjects SRCDIR = # # We build when installing to make sure they build # OTHEREXAMPLES = PeopleDBScripts MAKEEXAMPLES = Archiving/ArchivingNSObject \ Archiving/ArchivingObject \ EOController/PeopleDemo_oracle \ EOController/PeopleDemo_sybase \ FlatFileDataSource \ ManyToMany/Projects_oracle \ ManyToMany/Projects_sybase \ QueryByExample/QBEPalette \ RadioMatrixAssociation \ SHLExamples/AccessLayer \ SHLExamples/Buffering \ SHLExamples/DataSource \ SHLExamples/Delegation \ SHLExamples/EnterpriseObject \ SHLExamples/KeyValueCoding \ SHLExamples/Querying \ SHLExamples/Sorting \ SQLExecutor \ DistributedEO \ UniqueKey/UniqueKey_oracle \ UniqueKey/UniqueKey_sybase \ Validation \ MasteringDetails OTHERFILES = Makefile ExampleGuide.rtf QueryByExample/README.rtfd OTHERSRCS = SGS_ENV $(OTHERFILES) all: @for i in $(MAKEEXAMPLES) ; \ do ( cd $$i; echo "making $$i" ; $(MAKE) $(MAKE_FLAGS) $@ || exit $$? ) ; \ done installhdrs: clean: @for i in $(MAKEEXAMPLES) ; \ do ( cd $$i; echo "cleaning $$i" ; $(MAKE) $(MAKE_FLAGS) $@ || exit $$? ) ; \ done install: $(DSTROOT) $(DSTROOT)$(DSTDIR) @for i in $(MAKEEXAMPLES) ; \ do ( cd $$i; \ echo "******************** install $$i ************************"; \ $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(DSTROOT)$(DSTDIR)/$$i || exit $$?; \ echo "******************** testing $$i ************************"; \ $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(OBJROOT)$(DSTDIR)/$$i || exit $$?; \ cd $(OBJROOT)$(DSTDIR)/$$i ; $(MAKE) $(MAKE_FLAGS) || exit $$? ) ; \ done tar cf - $(OTHERFILES) $(OTHEREXAMPLES) | ( cd $(DSTROOT)$(DSTDIR) ; tar xvf - ) -/etc/chown -R root.wheel $(DSTROOT)$(DSTDIR) installsrc: $(SRCROOT) rm -rf $(SRCROOT)$(SRCDIR) mkdirs $(SRCROOT)$(SRCDIR) tar cf - $(OTHERSRCS) $(OTHEREXAMPLES) | ( cd $(SRCROOT)$(SRCDIR) ; tar xvf - ) for i in $(MAKEEXAMPLES) ; \ do ( cd $$i; $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(SRCROOT)$(SRCDIR)/$$i ) ; \ done DSTROOT SRCROOT: @if [ -n "$($@)" ]; \ then \ exit 0; \ else \ echo Must define $@; \ exit 1; \ fi $(DSTROOT)$(DSTDIR) $(SRCROOT)$(SRCDIR):; mkdirs $@
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.