source: trunk/Makefile.in @ 306

Last change on this file since 306 was 306, checked in by bas, 10 years ago

made docdir configurable, closes #37

File size: 769 bytes
Line 
1TAR=tar
2GZIP_ENV=--best
3
4PREFIX=@prefix@
5exec_prefix=$(PREFIX)
6BINDIR=$(PREFIX)/bin
7
8DOCDIR=@docdir@
9EXAMPLES=$(DOCDIR)/examples
10
11.PHONY: install pythonlib
12pythonlib:
13        #(cd src; make)
14        python setup.py build
15
16#install: pythonlib sara_install
17install: pythonlib
18        python ./setup.py install --prefix $(DESTDIR)/$(exec_prefix) ;
19        install -D LICENSE.openpbs $(DESTDIR)/$(DOCDIR)/LICENSE.openpbs
20        install -D COPYING $(DESTDIR)/$(DOCDIR)/COPYING
21        install -D COPYING.LESSER $(DESTDIR)/$(DOCDIR)/COPYING.LESSER
22        (cd examples; for i in *py; do install -D $$i  $(DESTDIR)/$(EXAMPLES)/$${i}; done)
23
24sara_install:
25        install -D examples/new_rack_pbsmon.py $(DESTDIR)/$(BINDIR)/pbsmon
26
27clean:
28        rm -rf config.log config.cache config.status build
29
30distclean: clean
31        rm Makefile setup.py
Note: See TracBrowser for help on using the repository browser.