2010-10-04 18:15:57 +03:00
|
|
|
#!/usr/bin/make -f
|
2012-06-21 11:42:40 +03:00
|
|
|
# This file is in the public domain.
|
|
|
|
# You may freely use, modify, distribute, and relicense it.
|
2010-10-04 18:15:57 +03:00
|
|
|
|
2010-10-05 11:09:41 +03:00
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
2010-10-04 18:15:57 +03:00
|
|
|
|
2010-10-05 11:09:41 +03:00
|
|
|
export PREFIX=/usr
|
2010-10-04 18:15:57 +03:00
|
|
|
|
2012-06-21 11:42:40 +03:00
|
|
|
build clean install binary-arch binary-indep binary:
|
|
|
|
+dh --parallel $(opt_no_act) $@
|
2010-10-04 18:15:57 +03:00
|
|
|
|
2010-10-21 07:31:10 +03:00
|
|
|
override_dh_auto_clean:
|
2012-06-21 11:42:40 +03:00
|
|
|
$(MAKE) spotless
|
|
|
|
sh debian/clean.sh
|
|
|
|
|
|
|
|
override_dh_installchangelogs:
|
|
|
|
dpkg-parsechangelog --format rfc822 --all | \
|
|
|
|
awk -f debian/changelog.upstream.awk
|
|
|
|
dh_installchangelogs debian/changelog.upstream
|
|
|
|
|
|
|
|
opt_optimize = CFLAGS="-g -O2"
|
|
|
|
opt_no_act =
|
|
|
|
opt_quiet =
|
|
|
|
|
|
|
|
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
|
|
|
|
opt_optimize = CFLAGS="-g -O0"
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(findstring n,$(MAKEFLAGS)))
|
|
|
|
opt_no_act = --no-act
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter quiet,$(DEB_BUILD_OPTIONS)))
|
|
|
|
opt_quiet = --quiet
|
|
|
|
MAKEFLAGS += --quiet
|
|
|
|
endif
|
|
|
|
|
|
|
|
REPO = git://projects.qi-hardware.com/fped.git
|
|
|
|
BRANCH = master
|
|
|
|
debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST))))
|
|
|
|
get-orig-source:
|
|
|
|
REPO='$(REPO)' BRANCH='$(BRANCH)' \
|
|
|
|
sh '$(debiandir_SQ)'get-orig-source.sh
|
2010-10-21 07:31:10 +03:00
|
|
|
|
2010-10-05 11:09:41 +03:00
|
|
|
%:
|
|
|
|
dh $@
|