File: rules

package info (click to toggle)
gap-tomlib 1r2p5-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 234,200 kB
  • ctags: 36
  • sloc: xml: 5,290; makefile: 63
file content (57 lines) | stat: -rwxr-xr-x 1,478 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
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
56
57
#!/usr/bin/make -f
# Copyright 2016 Bill Allombert <ballombe@debian.org>

build-indep-stamp:
ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
	mkdir -p debian/gaproot/pkg
	ln -s ../../.. debian/gaproot/pkg/tomlib
	(cd tst && gap -q -l '../debian/gaproot;/usr/share/gap' < testall.g ) \
           | tee debian/gap.tst
	! grep "^########" debian/gap.tst
endif
	make -C doc gapdoc
	make -C doc clean
	rm -f doc/tomlib.brf doc/tomlib.out
	touch build-indep-stamp
build-arch: 
build-indep: build-indep-stamp
build: build-arch build-indep

clean:
	dh_testdir
	dh_testroot
	make -C doc spotless
	rm -f doc/bib.xml.bib
	rm -f build-indep-stamp
	rm -rf debian/gaproot
	rm -f debian/gap.tst
	dh_clean

install: DH_OPTIONS=
install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	dh_install -X Makefile -X README -X stamp -X debian -X tst -X .pc . usr/share/gap/pkg/tomlib
	chmod a-x debian/gap-table-of-marks/usr/share/gap/pkg/tomlib/doc/*
	gzip --no-name -r --best debian/gap-table-of-marks/usr/share/gap/pkg/tomlib/data/
	dh_installdocs README

# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installchangelogs  -i
	dh_link -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

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