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
|
#!/usr/bin/make -f
# Derived from debhelper/dh_make example and previous hello-based rules file.
#export DH_VERBOSE=1
export DH_COMPAT=2
export DH_OPTIONS
CFLAGS := -g -Wall
ifneq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" ""
CFLAGS += -O0
else
CFLAGS += -O2
endif
texinfo := $(CURDIR)/debian/texinfo
build: build-stamp
build-stamp:
dh_testdir
CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
--infodir='$${prefix}/share/info' --mandir='$${prefix}/share/man'
$(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean build-stamp intl/libintl.h
install: DH_OPTIONS=
install: build-stamp
dh_testdir
dh_testroot
dh_clean -k
$(MAKE) install install-tex prefix=$(texinfo)/usr \
TEXMF=$(texinfo)/usr/share/texmf
find $(texinfo) -type f -name dir -or -name install-info* | xargs rm -f
# rm -rf $(texinfo)/usr/share/texmf/tex/generic # epsf.tex is in tetex-base
rm -rf $(texinfo)/usr/share/texmf/pdftex # remove the broken epsf.tex
dh_movefiles --sourcedir=debian/texinfo -pinfo usr/bin/info* \
usr/share/info/info*.info* usr/share/man/man1/info* \
usr/share/man/man5/info*
binary-indep:
# There aren't any architecture independent packages here.
binary-arch: DH_OPTIONS=-a
binary-arch: install
dh_testdir
dh_testroot
dh_installdocs AUTHORS INTRODUCTION README NEWS TODO
dh_installmenu
dh_installchangelogs ChangeLog
ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
dh_strip
endif
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|