File: rules

package info (click to toggle)
gap-gapdoc 1.5.1-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,348 kB
  • ctags: 584
  • sloc: xml: 3,437; makefile: 239; sh: 3
file content (47 lines) | stat: -rwxr-xr-x 1,093 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
#!/usr/bin/make -f
# Copyright 2014 Bill Allombert <ballombe@debian.org>

build-indep-stamp:
	mkdir -p gaproot/pkg
	ln -s ../.. gaproot/pkg/GAPDoc
	gap -l 'gaproot;/usr/share/gap' < makedocrel.g >/dev/null && touch build-indep-stamp
build-indep: build-indep-stamp
build-arch:
build: build-indep

clean:
	dh_testdir
	dh_testroot
	rm -fr gaproot
	make -C doc clean
	make -C example clean
	make -C 3k+1 clean
	rm -f build-indep-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	dh_install -Xmakedocrel.g *.dtd *.g lib styles version usr/share/gap/pkg/GAPDoc
	make -C doc install DESTDIR=../debian/gap-gapdoc
	make -C example install DESTDIR=../debian/gap-gapdoc
	make -C 3k+1 install DESTDIR=../debian/gap-gapdoc
binary-arch: build-arch
binary-indep: build-indep install
	dh_testdir
	dh_testroot
	dh_installdocs README
	dh_installexamples
	dh_installchangelogs CHANGES
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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