File: rules

package info (click to toggle)
unp 2.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 168 kB
  • sloc: perl: 610; makefile: 55; sh: 7
file content (26 lines) | stat: -rwxr-xr-x 730 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
#!/usr/bin/make -f
%:
	perl unp --format-bc > debian/unp.bash-completion
	dh $@ --with bash-completion

override_dh_auto_test:
	true

override_dh_auto_build:
	echo Not building, that Makefile runs optional tests.

override_dh_install:
	dh_installdirs
	mkdir -p debian/unp/usr/bin debian/unp/etc
	install -m755 unp debian/unp/usr/bin/
	ln -sf unp debian/unp/usr/bin/ucat
	$(MAKE) -C po install "DESTDIR=$(CURDIR)/debian/unp"
	mkdir -p debian/unp/usr/share/man/man1
	help2man -n "unpack everything" --no-info ./unp > debian/unp/usr/share/man/man1/unp.1
	help2man -n "unpack everything to standard output" --no-info ./ucat > debian/unp/usr/share/man/man1/ucat.1
	dh_fixperms
	dh_compress

override_dh_clean:
	dh_clean
	rm -f po/*.mo