File: Makefile

package info (click to toggle)
dh-di 3
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 44 kB
  • ctags: 4
  • sloc: perl: 84; makefile: 17
file content (20 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
VERSION := $(shell dpkg-parsechangelog | awk '/Version:/ { print $$2 }')

PERLLIBDIR := $(shell perl -MConfig -e 'print $$Config{vendorlib}')/Debian/Debhelper

POD2MAN := pod2man -c Debhelper -r "$(VERSION)"

build:
	$(POD2MAN) dh_di_numbers dh_di_numbers.1
	$(POD2MAN) dh_di_kernel_gencontrol dh_di_kernel_gencontrol.1
	$(POD2MAN) dh_di_kernel_install dh_di_kernel_install.1

clean:
	rm -f *.1

install:
	install -d $(DESTDIR)/usr/bin $(DESTDIR)$(PERLLIBDIR)/Sequence
	install dh_di_numbers $(DESTDIR)/usr/bin/
	install dh_di_kernel_gencontrol $(DESTDIR)/usr/bin/
	install dh_di_kernel_install $(DESTDIR)/usr/bin/
	install -m 0644 lib/Debian/Debhelper/Sequence/*.pm $(DESTDIR)$(PERLLIBDIR)/Sequence/