File: Makefile

package info (click to toggle)
chemeq 1.9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 164 kB
  • ctags: 168
  • sloc: cpp: 784; yacc: 260; ansic: 123; perl: 107; makefile: 94; sh: 10
file content (35 lines) | stat: -rw-r--r-- 771 bytes parent folder | download
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
INSTALL=install
DESTDIR =
BIN     = $(DESTDIR)/usr/bin
MAN1    = $(DESTDIR)/usr/share/man/man1
DOC	= $(DESTDIR)/usr/share/doc/chemeq
TESTS   = $(DOC)/tests
TESTSUITE	= tests/chemreport tests/chemreport.pl \
		  tests/chemtest tests/chemtest.pl
TESTSTUFF	= tests/test.stuff

all : 
	(cd src; ${MAKE})

demo : all
	(cd tests; chemreport)

test : all
	(cd tests; PATH=../src:$$PATH sh chemtest)

install : all
	${INSTALL} -d $(BIN) $(MAN1) $(TESTS)
	${INSTALL} --strip src/chemeq $(BIN)
	gzip -c -9 chemeq.1 > chemeq.1.gz
	${INSTALL} -m644 chemeq.1.gz $(MAN1)
	${INSTALL} -m755 $(TESTSUITE) $(TESTS)
	${INSTALL} -m644 $(TESTSTUFF) $(TESTS)

uninstall :
	rm $(BIN)/chemeq
	rm $(MAN1)/chemeq.1.gz
	rm -rf $(DOC)

clean :
	rm -f *~ *.gz semantic.cache
	(cd src; ${MAKE} clean)