File: rules

package info (click to toggle)
html2markdown 2.38-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 116 kB
  • ctags: 51
  • sloc: python: 349; makefile: 16
file content (28 lines) | stat: -rwxr-xr-x 644 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
#!/usr/bin/make -f
# Mmaintainer: run get-* targets manually.

PACKAGE   = html2markdown
CHANGELOG = debian/upstream.changelog

get-changelog:
	lynx -dump http://www.aaronsw.com/2002/html2text > $(CHANGELOG)

get-orig-source:
	mkdir -p ../tmp
	wget -O ../tmp/$(PACKAGE).py http://www.aaronsw.com/2002/html2text/html2text.py

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_installchangelogs:
	dh_installchangelogs $(CHANGELOG)

override_dh_auto_install: man
	install -D -m 755 *.py $(CURDIR)/debian/$(PACKAGE)/usr/bin/$(PACKAGE)

%:
	dh $@

.PHONY: build configure man get-changelog get-orig-source

# End of file