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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
package=seetex
build: build-stamp
build-stamp:
dh_testdir
$(checkdir)
xmkmf
make Makefiles
make libtex/lib.a
make dviselect
cd Dviconcat && make dviconcat
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-make clean
cd Dviconcat
-make clean
cd ..
# -rm -f `find . -name "*~"`
# -rm -f `find . -name "*.bak"`
-rm -f Makefile */Makefile
# -rm -rf debian/tmp `find debian/* -type d ! -name CVS ` debian/files* core
# -rm -f debian/*substvars
dh_clean
# Build architecture-independent files here.
binary-indep: build
# dh_testversion
# dh_testdir -i
# dh_testroot -i
# dh_clean -i -k
binary-arch: build
# dh_testversion
dh_testdir -pdviutils
dh_testroot -pdviutils
dh_clean -k -pdviutils
dh_installdirs -pdviutils
make COMMON_SUBDIRS="Dviselect" \
DESTDIR=`pwd`/debian/tmp install
make COMMON_SUBDIRS="Dviconcat" \
DESTDIR=`pwd`/debian/tmp install
make COMMON_SUBDIRS="Dviselect" \
DESTDIR=`pwd`/debian/tmp TEX_MANDIR=/usr/share/man/man1 MANSUFFIX=1 install.man
make COMMON_SUBDIRS="Dviconcat" \
DESTDIR=`pwd`/debian/tmp TEX_MANDIR=/usr/share/man/man1 MANSUFFIX=1 install.man
dh_installdocs -pdviutils
# dh_installexamples
# dh_installmenu
# dh_installinit
# dh_installcron
# dh_installmanpages
# dh_undocumented
dh_installchangelogs -pdviutils
dh_strip -pdviutils
dh_compress -pdviutils
dh_fixperms -pdviutils
# dh_suidregister
dh_installdeb -pdviutils
dh_shlibdeps -pdviutils
dh_gencontrol -pdviutils
# dh_makeshlibs
dh_md5sums -pdviutils
dh_builddeb -pdviutils
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build binary binary-arch binary-indep clean
|