File: Makefile

package info (click to toggle)
lodju 2.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 456 kB
  • ctags: 814
  • sloc: python: 4,698; ansic: 139; makefile: 64; sh: 21
file content (33 lines) | stat: -rw-r--r-- 835 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
prefix = $(PWD)/test-tree
bindir = $(prefix)/bin
libdir = $(prefix)/lib
sharedir = $(prefix)/share
mandir = $(prefix)/share/man
man1dir = $(mandir)/man1

all: check

check: _lodju.so
	python testrun.py

_lodju.so: _lodjumodule.c
	python setup.py build
	cp build/lib.*/_lodju.so .

install: _lodju.so
	install -d $(bindir)
	install -d $(libdir)
	install -d $(sharedir)
	install -d $(man1dir)
	sed 's#^SHAREDIR.*#SHAREDIR = "$(sharedir)"#' lodju.py | \
	    sed 's#^LIBDIR.*#LIBDIR = "$(libdir)"#;' > $(bindir)/lodju
	chmod 755 $(bindir)/lodju
	install convert-lodju1-to-lodju2.sh $(bindir)/convert-lodju1-to-lodju2
	install _lodju.so $(libdir)
	install -m 0644 lodju.dtd lodju.glade *.png *.py $(sharedir)
	cp -a templates $(sharedir)
	install -m 0644 *.1 $(man1dir)
	rm $(sharedir)/lodju.py

clean:
	rm -rf *.pyc *.pyo _lodju.so build