File: rules

package info (click to toggle)
post-faq 0.10-21
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 320 kB
  • ctags: 51
  • sloc: perl: 626; sh: 28; makefile: 16; awk: 7
file content (31 lines) | stat: -rwxr-xr-x 815 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
31
#!/usr/bin/make -f
#
# (C) 1998-2014 Roland Rosenfeld <roland@debian.org>, based on
# sample debian/rules that uses debhelper. 
# This file is public domain software, originally written by Joey Hess.
#
# This version is for packages that are architecture independent.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

debroot = `pwd`/debian/post-faq

%:
	dh $@

override_dh_auto_build:
	$(MAKE) -f Makefile.base config.dat
	$(MAKE) -f Makefile.base Makefile
	$(MAKE)

override_dh_clean:
	dh_clean
	[ ! -f Makefile ] || $(MAKE) clean
	rm -f config.dat

override_dh_auto_install:
	install -m 0755 post_faq.pl $(debroot)/usr/bin/post_faq
	install -m 0644 faqfile.pl $(debroot)/usr/share/post-faq/faqfile.pl
	sed -e 's/post_faq\.pl/post_faq/g' post_faq.man \
		> $(debroot)/usr/share/man/man1/post_faq.1