File: rules

package info (click to toggle)
makepp 2.0.98.5-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,744 kB
  • sloc: perl: 15,893; makefile: 38; javascript: 25; sh: 1
file content (55 lines) | stat: -rwxr-xr-x 893 bytes parent folder | download | duplicates (2)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PERL_USE_UNSAFE_INC=1

configure: config-stamp
config-stamp:
	perl config.pl --prefix=/usr --mandir=/usr/share/man
	touch $@

build: build-indep build-arch

build-indep: configure
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make test
endif

build-arch:

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	make install DESTDIR=$(CURDIR)/debian/makepp GZIP="-9n"

binary: binary-indep binary-arch

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs ChangeLog

	dh_link usr/share/makepp/html usr/share/doc/makepp/html

	dh_compress
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:

clean:
	dh_testdir
	dh_testroot

	-test -f Makefile && make clean

	dh_clean

.PHONY: build build-indep build-arch clean binary-indep binary-arch binary install configure