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