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
|
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
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
|