|
|
Sample Programs from NeXSTEP 3.3
# # Makefile for /NextDeveloper/Examples/DatabaseKit # # 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/dbkitexamples # # where $HOME is assumed to expand to your home directory. # Then you can make them all by cd'ing to ~/dbkitexamples and typing # # make all DSTDIR = /NextDeveloper/Examples/DatabaseKit SRCDIR = # # We build when installing to make sure they build # OTHEREXAMPLES = Models MAKEEXAMPLES = PubsDemo AddressBook Binder OracleDemo Evaluator \ AssociationSybase AssociationOracle BarChart TableView Formatter OTHERFILES = Makefile README 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.