File: rules

package info (click to toggle)
fauhdlc 20180504-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,956 kB
  • sloc: cpp: 23,188; ansic: 6,077; yacc: 3,764; lex: 763; makefile: 605; sh: 494; xml: 403
file content (73 lines) | stat: -rwxr-xr-x 1,534 bytes parent folder | download | duplicates (3)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/make -f

# $Id: rules 5115 2012-07-07 20:07:35Z potyra $
# 
#  Copyright (C) 2008-2018 FAUmachine Team <faumachine@potyra.de>.
#  This program is free software, GPL-2 (or any later version). See COPYING.

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif

clean:
	dh_testdir
	dh_testroot
	if [ -e Makefile ]; then \
		$(MAKE) mrproper; \
	fi
	dh_clean
	$(RM) build-arch-stamp
	$(RM) -r debian/tmp

configure: configure.ac autogen.sh acinclude.m4
	./autogen.sh

config.status: configure
	./configure \
		--prefix=/usr \
		--disable-Werror \
		$(shell dpkg-buildflags --export=configure)

build-arch-stamp: config.status
	dh_testdir
	$(MAKE) $(MAKEFLAGS)
	touch $@

install: build-arch-stamp
	dh_testdir
	dh_testroot
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

tests: build-arch-stamp
	dh_testdir
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	$(MAKE) tests
endif

binary-arch: install tests
	dh_testdir
	dh_testroot
	dh_installchangelogs -a ChangeLog
	dh_installdocs -a
	dh_installman -a
	dh_install -a --sourcedir=debian/tmp
	dh_link -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

# no indep packages.
binary-indep:
build-indep:
build-arch: build-arch-stamp
build: build-arch build-indep
binary: binary-arch binary-indep

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