File: Makefile

package info (click to toggle)
mpqc 2.3.1-18+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 42,828 kB
  • sloc: cpp: 258,686; sh: 8,532; perl: 6,017; ansic: 5,491; makefile: 2,496; fortran: 1,970; lisp: 1,269; yacc: 313; lex: 177; csh: 45
file content (87 lines) | stat: -rw-r--r-- 2,086 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
TOPDIR=.
ifndef SRCDIR
  SRCDIR=$(shell pwd)
endif

LOCALMAKEFILE_OPTIONAL = yes

include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile

ifeq ($(LOCALMAKEFILE_FOUND),yes)

SUBDIRS = lib bin src doc

include $(SRCDIR)/$(TOPDIR)/lib/GlobalSubDirs

install_devel::
	-$(INSTALL) $(INSTALLSCRIPTOPT) libtool $(installroot)$(bindir)/sc-libtool

clean::
	-rm -f depcheck.cc

distclean:: clean
	-rm -f config.log
	-rm -f config.status
	-rm -f libtool

else

# If the LocalMakefile does not exist we are not in an object directory.
# Here we only wish to do administrative tasks, such as make tags.

default::
	@echo "The LocalMakefile was not found.  First run configure in the directory"
	@echo "you want object code to be placed and then run make there.  However,"
	@echo "if you would like to run some administrative commands in the source"
	@echo "tree, the following targets are available:"
	@echo 
	@echo "  configure     Update aclocal.m4 and run configure."
	@echo "  touch         Make sure the parser files are more recent than"
	@echo "                the sources.  Useful after a CVS checkout."
	@echo "  tags          Build a new TAGS file."
	@echo "  ebrowse       Build a new BROWSE file for emacs ebrowse."
	@echo "  clean         Remove emacs backup files in this and all subdirectories."
	@echo 

endif

check: check0

check0:
	cd src/bin/mpqc/validate; $(MAKE) check0

check1:
	cd src/bin/mpqc/validate; $(MAKE) check1

check2:
	cd src/bin/mpqc/validate; $(MAKE) check2

check_clean:
	cd src/bin/mpqc/validate; $(MAKE) check_clean

.PHONY: configure
configure:
	aclocal -I lib/autoconf
	autoconf
	/bin/rm -rf autom4te.cache

.PHONY: touch
touch:
	touch src/bin/mpqc/scan.cc
	touch src/bin/mpqc/parse.cc
	touch src/bin/mpqc/parse.h
	touch src/lib/util/keyval/ipv2_scan.cc
	touch src/lib/util/keyval/ipv2_parse.cc
	touch src/lib/util/keyval/ipv2_parse.h

.PHONY: tags
tags:
	etags --members `find . -name "*.[hcfCF]"` `find . -name "*.cc"`

.PHONY: ebrowse
ebrowse:
	ebrowse `find . -name "*.[hcC]"` `find . -name "*.cc"`

.PHONY: clean
clean::
	/bin/rm -f `find . -name "*~" -print`