File: rules

package info (click to toggle)
wikipediafs 0.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 264 kB
  • ctags: 157
  • sloc: python: 702; sh: 26; makefile: 16
file content (27 lines) | stat: -rwxr-xr-x 563 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
#!/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.8

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

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

	/usr/bin/docbook-to-man debian/mount.wikipediafs.sgml > $(MANPAGE)

	dh_pycentral
	dh_python

	dh_installman $(MANPAGE)

cleanbuilddir/python-libgmail:: unpatch
	rm -f $(MANPAGE)
	rm -f $(wildcard *.pyc *.pyo)