source: Makefile@ ad2befa

Last change on this file since ad2befa was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago

Initial commit based on 3.0.0alpha (here claimed as 2.4).

  • simply added all files.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1TOPDIR=.
2ifndef SRCDIR
3 SRCDIR=$(shell pwd)
4endif
5
6LOCALMAKEFILE_OPTIONAL = yes
7
8include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile
9
10ifeq ($(LOCALMAKEFILE_FOUND),yes)
11
12SUBDIRS = lib bin src
13
14include $(SRCDIR)/$(TOPDIR)/lib/GlobalSubDirs
15
16install_devel::
17 -$(INSTALL) $(INSTALLSCRIPTOPT) libtool $(installroot)$(bindir)/sc-libtool
18
19clean::
20 -rm -f depcheck.cc
21
22distclean:: clean
23 -rm -f config.log
24 -rm -f config.status
25 -rm -f libtool
26
27else
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
32default::
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
46endif
47
48check: check0
49
50check0:
51 cd src/bin/mpqc/validate; $(MAKE) check0
52
53check1:
54 cd src/bin/mpqc/validate; $(MAKE) check1
55
56check2:
57 cd src/bin/mpqc/validate; $(MAKE) check2
58
59check_clean:
60 cd src/bin/mpqc/validate; $(MAKE) check_clean
61
62.PHONY: configure
63configure:
64 aclocal -I lib/autoconf
65 autoconf
66 /bin/rm -rf autom4te.cache
67
68.PHONY: touch
69touch:
70 touch src/bin/mpqc/scan.cc
71 touch src/bin/mpqc/parse.cc
72 touch src/bin/mpqc/parse.h
73 touch src/lib/util/keyval/ipv2_scan.cc
74 touch src/lib/util/keyval/ipv2_parse.cc
75 touch src/lib/util/keyval/ipv2_parse.h
76
77.PHONY: tags
78tags:
79 etags --members `find . -name "*.[hcfCF]"` `find . -name "*.cc"`
80
81.PHONY: ebrowse
82ebrowse:
83 ebrowse `find . -name "*.[hcC]"` `find . -name "*.cc"`
84
85.PHONY: clean
86clean::
87 /bin/rm -f `find . -name "*~" -print`
Note: See TracBrowser for help on using the repository browser.