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
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess.
# Pasted from Policy 4.9.1 :(but disabled parallel building).
CFLAGS = -Wall -g
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
#ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
# NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
# MAKEFLAGS += -j$(NUMJOBS)
#endif
src/Makefile:
aclocal ; autoconf -f ; automake -f ; ./configure --prefix=/usr
build: src/Makefile build-stamp
build-stamp:
dh_testdir
$(MAKE) CFLAGS="$(CFLAGS)"
touch build-stamp
clean:
dh clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
binary-indep: build install
binary-arch: build install
dh binary-arch
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|