File: rules

package info (click to toggle)
wikipediafs 0.4-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 720 kB
  • ctags: 187
  • sloc: python: 991; sh: 26; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 595 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pycentral

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

PACKAGE=$(shell dh_listpackages)

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

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

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

	/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::
	rm -f $(wildcard *.pyc *.pyo)
	rm -f $(MANPAGE)
	rm -fr build