File: rules

package info (click to toggle)
manpages-tr 2.0.6-2
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,168 kB
  • sloc: makefile: 78; sh: 30
file content (18 lines) | stat: -rwxr-xr-x 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

%:
	dh $@

override_dh_auto_build:
	$(MAKE) deb-build

override_dh_auto_install:
	$(MAKE) deb-install MANDIR=$(CURDIR)/debian/manpages-tr/usr/share/man/tr
	grep -v '^#' debian/manpages-tr.prune | while read exists crap; do \
		exists=`echo "$$exists" | \
			sed -e 's,usr/share/man/tr\.[^/]\+,usr/share/man/tr,'`;\
			rm -f `pwd`/debian/manpages-tr/"$$exists".gz; \
		done