|
|
1.1 ! root 1: # ! 2: # Makefile for /NextDeveloper/Examples/EnterpriseObjects ! 3: # ! 4: # You can copy all of the examples to your home directory by ! 5: # cd'ing in a Terminal to this directory and typing ! 6: # ! 7: # make installsrc SRCROOT=$HOME/eofexamples ! 8: # ! 9: # where $HOME is assumed to expand to your home directory. ! 10: # Then you can make them all by cd'ing to ~/eofexamples and typing ! 11: # ! 12: # make all ! 13: ! 14: DSTDIR = /NextDeveloper/Examples/EnterpriseObjects ! 15: SRCDIR = ! 16: ! 17: # ! 18: # We build when installing to make sure they build ! 19: # ! 20: ! 21: OTHEREXAMPLES = PeopleDBScripts ! 22: MAKEEXAMPLES = Archiving/ArchivingNSObject \ ! 23: Archiving/ArchivingObject \ ! 24: EOController/PeopleDemo_oracle \ ! 25: EOController/PeopleDemo_sybase \ ! 26: FlatFileDataSource \ ! 27: ManyToMany/Projects_oracle \ ! 28: ManyToMany/Projects_sybase \ ! 29: QueryByExample/QBEPalette \ ! 30: RadioMatrixAssociation \ ! 31: SHLExamples/AccessLayer \ ! 32: SHLExamples/Buffering \ ! 33: SHLExamples/DataSource \ ! 34: SHLExamples/Delegation \ ! 35: SHLExamples/EnterpriseObject \ ! 36: SHLExamples/KeyValueCoding \ ! 37: SHLExamples/Querying \ ! 38: SHLExamples/Sorting \ ! 39: SQLExecutor \ ! 40: DistributedEO \ ! 41: UniqueKey/UniqueKey_oracle \ ! 42: UniqueKey/UniqueKey_sybase \ ! 43: Validation \ ! 44: MasteringDetails ! 45: ! 46: OTHERFILES = Makefile ExampleGuide.rtf QueryByExample/README.rtfd ! 47: OTHERSRCS = SGS_ENV $(OTHERFILES) ! 48: ! 49: ! 50: all: ! 51: @for i in $(MAKEEXAMPLES) ; \ ! 52: do ( cd $$i; echo "making $$i" ; $(MAKE) $(MAKE_FLAGS) $@ || exit $$? ) ; \ ! 53: done ! 54: ! 55: installhdrs: ! 56: ! 57: clean: ! 58: @for i in $(MAKEEXAMPLES) ; \ ! 59: do ( cd $$i; echo "cleaning $$i" ; $(MAKE) $(MAKE_FLAGS) $@ || exit $$? ) ; \ ! 60: done ! 61: ! 62: install: $(DSTROOT) $(DSTROOT)$(DSTDIR) ! 63: @for i in $(MAKEEXAMPLES) ; \ ! 64: do ( cd $$i; \ ! 65: echo "******************** install $$i ************************"; \ ! 66: $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(DSTROOT)$(DSTDIR)/$$i || exit $$?; \ ! 67: echo "******************** testing $$i ************************"; \ ! 68: $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(OBJROOT)$(DSTDIR)/$$i || exit $$?; \ ! 69: cd $(OBJROOT)$(DSTDIR)/$$i ; $(MAKE) $(MAKE_FLAGS) || exit $$? ) ; \ ! 70: done ! 71: tar cf - $(OTHERFILES) $(OTHEREXAMPLES) | ( cd $(DSTROOT)$(DSTDIR) ; tar xvf - ) ! 72: -/etc/chown -R root.wheel $(DSTROOT)$(DSTDIR) ! 73: ! 74: installsrc: $(SRCROOT) ! 75: rm -rf $(SRCROOT)$(SRCDIR) ! 76: mkdirs $(SRCROOT)$(SRCDIR) ! 77: tar cf - $(OTHERSRCS) $(OTHEREXAMPLES) | ( cd $(SRCROOT)$(SRCDIR) ; tar xvf - ) ! 78: for i in $(MAKEEXAMPLES) ; \ ! 79: do ( cd $$i; $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(SRCROOT)$(SRCDIR)/$$i ) ; \ ! 80: done ! 81: ! 82: DSTROOT SRCROOT: ! 83: @if [ -n "$($@)" ]; \ ! 84: then \ ! 85: exit 0; \ ! 86: else \ ! 87: echo Must define $@; \ ! 88: exit 1; \ ! 89: fi ! 90: ! 91: $(DSTROOT)$(DSTDIR) $(SRCROOT)$(SRCDIR):; mkdirs $@
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.