~ubuntu-branches/ubuntu/raring/chemeq/raring

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2003-04-14 12:04:35 UTC
  • Revision ID: james.westby@ubuntu.com-20030414120435-osewh7q6iw8pqx3g
Tags: 1.2-1
* added the -M switch; features molecular weights calculation
* corrected the references to endl (using std::endl instead)
  closes: Bug#188906
  other incorrect references to cin, cout and cerr are due to a bad
  behavior of flex when used in c++ mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
INSTALL=install
 
2
DESTDIR =
 
3
BIN     = $(DESTDIR)/usr/bin
 
4
MAN1    = $(DESTDIR)/usr/share/man/man1
 
5
DOC     = $(DESTDIR)/usr/share/doc/chemeq
 
6
TESTS   = $(DOC)/tests
 
7
TESTSUITE       = tests/chemreport tests/chemreport.pl \
 
8
                  tests/chemtest tests/chemtest.pl
 
9
TESTSTUFF       = tests/test.stuff
 
10
 
 
11
all : 
 
12
        (cd src; ${MAKE})
 
13
 
 
14
demo : all
 
15
        (cd tests; chemreport)
 
16
 
 
17
test : all
 
18
        (cd tests; PATH=../src:$$PATH sh chemtest)
 
19
 
 
20
install : all
 
21
        ${INSTALL} -d $(BIN) $(MAN1) $(TESTS)
 
22
        ${INSTALL} --strip src/chemeq $(BIN)
 
23
        gzip -c -9 chemeq.1 > chemeq.1.gz
 
24
        ${INSTALL} -m644 chemeq.1.gz $(MAN1)
 
25
        ${INSTALL} -m755 $(TESTSUITE) $(TESTS)
 
26
        ${INSTALL} -m644 $(TESTSTUFF) $(TESTS)
 
27
 
 
28
uninstall :
 
29
        rm $(BIN)/chemeq
 
30
        rm $(MAN1)/chemeq.1.gz
 
31
        rm -rf $(DOC)
 
32
 
 
33
clean :
 
34
        rm -f *~ *.gz
 
35
        (cd src; ${MAKE} clean)