1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

debian: cleanup changelog, include debian build flags

This commit is contained in:
Xiangfu
2012-10-08 11:42:39 +08:00
parent d2daaf83d1
commit d76f7d19a8
4 changed files with 11 additions and 56 deletions

29
debian/rules vendored
View File

@@ -5,10 +5,13 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export PREFIX=/usr
build clean install binary-arch binary-indep binary:
+dh --parallel $(opt_no_act) $@
%:
dh $@
override_dh_auto_clean:
$(MAKE) spotless
@@ -19,29 +22,9 @@ override_dh_installchangelogs:
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
sh ./debian/get-orig-source.sh
%:
dh $@