File: rules

package info (click to toggle)
wikipediafs 0.3-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 204 kB
  • ctags: 140
  • sloc: python: 883; sh: 26; makefile: 18
file content (30 lines) | stat: -rwxr-xr-x 633 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pycentral

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/dpatch/dpatch.make

PACKAGE=$(shell dh_listpackages)

STAGING_DIR := $(CURDIR)/debian/$(PACKAGE)
MANPAGE     := mount.wikipediafs.1

install/wikipediafs:: patch
	mkdir -pm755 $(STAGING_DIR)

	python setup.py install --root=$(STAGING_DIR)

	/usr/bin/docbook-to-man doc/mount.wikipediafs.sgml > $(MANPAGE)
	rm -fr $(STAGING_DIR)/usr/share/man/man1/

	dh_pycentral

	dh_installman $(MANPAGE)

	rm -fr $(STAGING_DIR)/usr/lib

cleanbuilddir/wikipediafs:: unpatch
	rm -f $(wildcard *.pyc *.pyo)
	rm -f $(MANPAGE)
	rm -fr build