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
|
#!/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
build:
dh build
clean:
dh clean
binary-indep:
dh binary-indep
binary-arch:
dh binary-arch
override_dh_auto_configure:
override_dh_auto_build:
dh_testdir
aclocal ; autoconf -f ; automake -f ; ./configure --prefix=/usr
$(MAKE) CFLAGS="$(CFLAGS)"
$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
$(MAKE) distclean
aclocal ; autoconf -f ; automake -f ; ./configure --prefix=/usr --enable-phytime
$(MAKE) CFLAGS="$(CFLAGS)"
$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
touch build-stamp
override_dh_auto_install:
override_dh_prep:
dh_prep -X debian/phyml
override_dh_installdocs:
dh_installdocs
mv $(CURDIR)/debian/phyml/usr/share/doc/phyml/phyml-manual-????????.pdf $(CURDIR)/debian/phyml/usr/share/doc/phyml/phyml_manual.pdf
override_dh_compress:
dh_compress --exclude=.pdf
binary: binary-indep binary-arch
build-arch: build
build-indep:
.PHONY: build-arch build-indep clean binary-indep binary-arch binary
|