1 | TOPDIR=.
|
---|
2 | ifndef SRCDIR
|
---|
3 | SRCDIR=$(shell pwd)
|
---|
4 | endif
|
---|
5 |
|
---|
6 | LOCALMAKEFILE_OPTIONAL = yes
|
---|
7 |
|
---|
8 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile
|
---|
9 |
|
---|
10 | ifeq ($(LOCALMAKEFILE_FOUND),yes)
|
---|
11 |
|
---|
12 | SUBDIRS = lib bin src
|
---|
13 |
|
---|
14 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalSubDirs
|
---|
15 |
|
---|
16 | install_devel::
|
---|
17 | -$(INSTALL) $(INSTALLSCRIPTOPT) libtool $(installroot)$(bindir)/sc-libtool
|
---|
18 |
|
---|
19 | clean::
|
---|
20 | -rm -f depcheck.cc
|
---|
21 |
|
---|
22 | distclean:: clean
|
---|
23 | -rm -f config.log
|
---|
24 | -rm -f config.status
|
---|
25 | -rm -f libtool
|
---|
26 |
|
---|
27 | else
|
---|
28 |
|
---|
29 | # If the LocalMakefile does not exist we are not in an object directory.
|
---|
30 | # Here we only wish to do administrative tasks, such as make tags.
|
---|
31 |
|
---|
32 | default::
|
---|
33 | @echo "The LocalMakefile was not found. First run configure in the directory"
|
---|
34 | @echo "you want object code to be placed and then run make there. However,"
|
---|
35 | @echo "if you would like to run some administrative commands in the source"
|
---|
36 | @echo "tree, the following targets are available:"
|
---|
37 | @echo
|
---|
38 | @echo " configure Update aclocal.m4 and run configure."
|
---|
39 | @echo " touch Make sure the parser files are more recent than"
|
---|
40 | @echo " the sources. Useful after a CVS checkout."
|
---|
41 | @echo " tags Build a new TAGS file."
|
---|
42 | @echo " ebrowse Build a new BROWSE file for emacs ebrowse."
|
---|
43 | @echo " clean Remove emacs backup files in this and all subdirectories."
|
---|
44 | @echo
|
---|
45 |
|
---|
46 | endif
|
---|
47 |
|
---|
48 | check: check0
|
---|
49 |
|
---|
50 | check0:
|
---|
51 | cd src/bin/mpqc/validate; $(MAKE) check0
|
---|
52 |
|
---|
53 | check1:
|
---|
54 | cd src/bin/mpqc/validate; $(MAKE) check1
|
---|
55 |
|
---|
56 | check2:
|
---|
57 | cd src/bin/mpqc/validate; $(MAKE) check2
|
---|
58 |
|
---|
59 | check_clean:
|
---|
60 | cd src/bin/mpqc/validate; $(MAKE) check_clean
|
---|
61 |
|
---|
62 | .PHONY: all
|
---|
63 | all: default
|
---|
64 |
|
---|
65 | .PHONY: configure
|
---|
66 | configure:
|
---|
67 | aclocal -I lib/autoconf
|
---|
68 | autoconf
|
---|
69 | /bin/rm -rf autom4te.cache
|
---|
70 |
|
---|
71 | .PHONY: touch
|
---|
72 | touch:
|
---|
73 | touch src/bin/mpqc/scan.cc
|
---|
74 | touch src/bin/mpqc/parse.cc
|
---|
75 | touch src/bin/mpqc/parse.h
|
---|
76 | touch src/lib/util/keyval/ipv2_scan.cc
|
---|
77 | touch src/lib/util/keyval/ipv2_parse.cc
|
---|
78 | touch src/lib/util/keyval/ipv2_parse.h
|
---|
79 |
|
---|
80 | .PHONY: tags
|
---|
81 | tags:
|
---|
82 | etags --members `find . -name "*.[hcfCF]"` `find . -name "*.cc"`
|
---|
83 |
|
---|
84 | .PHONY: ebrowse
|
---|
85 | ebrowse:
|
---|
86 | ebrowse `find . -name "*.[hcC]"` `find . -name "*.cc"`
|
---|
87 |
|
---|
88 | .PHONY: clean
|
---|
89 | clean::
|
---|
90 | /bin/rm -f `find . -name "*~" -print`
|
---|