Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:

root / debian / rules @ 507079e2

1
#!/usr/bin/make -f
2
# GNU copyright 1997 to 1999 by Joey Hess.
3

    
4
# Uncomment this to turn on verbose mode.
5
#export DH_VERBOSE=1
6

    
7
PYTHON=/usr/bin/python
8
DESTDIR=$(CURDIR)/debian/wcs-au-quotidien
9

    
10
build: build-stamp
11

    
12
build-stamp:
13
	dh_testdir
14
	touch build-stamp
15

    
16
clean:
17
	dh_testdir
18
	dh_testroot
19
	rm -f build-stamp
20

    
21
	cd po && rm -f *.mo
22
	python setup.py clean
23
	rm -rf build
24

    
25
	dh_clean
26

    
27
install: build
28
	dh_testdir
29
	dh_testroot
30
	dh_clean -k
31
	dh_installdirs
32

    
33
	$(PYTHON) setup.py install --prefix=$(DESTDIR)/usr --no-compile
34
	for i in $(CURDIR)/debian/wcs-au-quotidien/usr/lib/python2.*; do \
35
		mv $$i/site-packages/extra \
36
			$$i/site-packages/extra-wcs-au-quotidien; done
37
	cd po && make install prefix=$(CURDIR)/debian/wcs-au-quotidien/
38
	install -d -m 755 $(DESTDIR)/var/lib/wcs-au-quotidien $(DESTDIR)/etc/wcs
39
	install -m 644 wcs-au-quotidien.cfg-sample $(DESTDIR)/etc/wcs/wcs-au-quotidien.cfg
40

    
41

    
42
# Build architecture-independent files here.
43
binary-indep: build install
44
	dh_testdir
45
	dh_testroot
46
	dh_installdocs
47
	dh_installchangelogs
48
	dh_installinit
49
	dh_link
50
	dh_strip
51
	dh_compress
52
	dh_fixperms
53
	dh_pysupport
54
	dh_installdeb
55
	dh_gencontrol
56
	dh_md5sums
57
	dh_builddeb
58

    
59
binary-arch: build install
60

    
61
binary: binary-indep binary-arch
62
.PHONY: build clean binary-indep binary-arch binary install
(7-7/8)