|
|
1.1 root 1: #
2: # Makefile for /NextDeveloper/Examples/DatabaseKit
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/dbkitexamples
8: #
9: # where $HOME is assumed to expand to your home directory.
10: # Then you can make them all by cd'ing to ~/dbkitexamples and typing
11: #
12: # make all
13:
14: DSTDIR = /NextDeveloper/Examples/DatabaseKit
15: SRCDIR =
16:
17: #
18: # We build when installing to make sure they build
19: #
20:
21: OTHEREXAMPLES = Models
22: MAKEEXAMPLES = PubsDemo AddressBook Binder OracleDemo Evaluator \
23: AssociationSybase AssociationOracle BarChart TableView Formatter
24:
25: OTHERFILES = Makefile README
26: OTHERSRCS = SGS_ENV $(OTHERFILES)
27:
28: all:
29: @for i in $(MAKEEXAMPLES) ; \
30: do ( cd $$i; echo "making $$i" ; $(MAKE) $(MAKE_FLAGS) $@ || exit $$? ) ; \
31: done
32:
33: installhdrs:
34:
35: clean:
36: @for i in $(MAKEEXAMPLES) ; \
37: do ( cd $$i; echo "cleaning $$i" ; $(MAKE) $(MAKE_FLAGS) $@ || exit $$? ) ; \
38: done
39:
40: install: $(DSTROOT) $(DSTROOT)$(DSTDIR)
41: @for i in $(MAKEEXAMPLES) ; \
42: do ( cd $$i; \
43: echo "******************** install $$i ************************"; \
44: $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(DSTROOT)$(DSTDIR)/$$i || exit $$?; \
45: echo "******************** testing $$i ************************"; \
46: $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(OBJROOT)$(DSTDIR)/$$i || exit $$?; \
47: cd $(OBJROOT)$(DSTDIR)/$$i ; $(MAKE) $(MAKE_FLAGS) || exit $$? ) ; \
48: done
49: tar cf - $(OTHERFILES) $(OTHEREXAMPLES) | ( cd $(DSTROOT)$(DSTDIR) ; tar xvf - )
50: -/etc/chown -R root.wheel $(DSTROOT)$(DSTDIR)
51:
52: installsrc: $(SRCROOT)
53: rm -rf $(SRCROOT)$(SRCDIR)
54: mkdirs $(SRCROOT)$(SRCDIR)
55: tar cf - $(OTHERSRCS) $(OTHEREXAMPLES) | ( cd $(SRCROOT)$(SRCDIR) ; tar xvf - )
56: for i in $(MAKEEXAMPLES) ; \
57: do ( cd $$i; $(MAKE) $(MAKE_FLAGS) installsrc SRCROOT=$(SRCROOT)$(SRCDIR)/$$i ) ; \
58: done
59:
60: DSTROOT SRCROOT:
61: @if [ -n "$($@)" ]; \
62: then \
63: exit 0; \
64: else \
65: echo Must define $@; \
66: exit 1; \
67: fi
68:
69: $(DSTROOT)$(DSTDIR) $(SRCROOT)$(SRCDIR):; mkdirs $@
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.