File: rules

package info (click to toggle)
wikipediafs 0.4-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 716 kB
  • sloc: python: 991; sh: 26; makefile: 15
file content (26 lines) | stat: -rwxr-xr-x 533 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f


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_python2

	dh_installman $(MANPAGE)

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