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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
#!/usr/bin/make -f
# MAde with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
./configure --prefix=/usr \
--sysconfdir=/etc --with-x --libexecdir=/usr/lib \
--localstatedir=/var/lib \
--with-tcl-config=/usr/lib/tclConfig.sh --with-tk-config=/usr/lib/tkConfig.sh
# --with-tclsh=/usr/bin/tclsh --with-wish=/usr/bin/wish
# Add here commands to compile the package.
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -rf debian/ppxp-x11 debian/ppxp-tcltk debian/ppxp-dev debian/tmp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
dh_clean
# Build architecture-independent files here.
binary-indep: build
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build
# dh_testversion
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the files into debian/tmp
# $(MAKE) install prefix=`pwd`/debian/tmp/usr
$(MAKE) install prefix=`pwd`/debian/tmp/usr \
PPXPDIR=`pwd`/debian/tmp/etc/ppxp \
DATADIR=`pwd`/debian/tmp/usr/share
# mv debian/tmp/usr/bin/fppxp debian/ppxp-forms/usr/bin/
rm -rf debian/tmp/usr/bin/fppxp
mv debian/tmp/usr/bin/xppxp* debian/tmp/usr/X11R6/bin/
dh_movefiles -pppxp-tcltk usr/lib/ppxp/tkppxp usr/lib/ppxp/tcl \
usr/bin/qdial usr/bin/tkppxp
dh_movefiles -pppxp-x11 usr/X11R6/bin/xppxp usr/X11R6/bin/xppxpm
### ppxp-dev
-mkdir -p debian/ppxp-dev/usr/include/ppxp
-mkdir -p debian/ppxp-dev/usr/lib
-mkdir -p debian/ppxp-dev/usr/share/doc
cp lib/*.h debian/ppxp-dev/usr/include/ppxp
cp lib/ppxp.a debian/ppxp-dev/usr/lib
cp -pr doc/ja_JP/*.html debian/tmp/usr/share/doc/ppxp/ja_JP/html/
# cp -pr doc/C/*.html debian/tmp/usr/doc/ppxp/C/html/
cp -pr doc/C/*.{txt,sgml} debian/tmp/usr/share/doc/ppxp/C/
cp -pr doc/ja_JP/*.{txt,sgml} debian/tmp/usr/share/doc/ppxp/ja_JP/
cp -pr doc/ja_JP/{HISTORY,TODO} debian/tmp/usr/share/doc/ppxp/ja_JP/
chown root.dialout debian/tmp/usr/sbin/ppxpd
chmod 4755 debian/tmp/usr/sbin/ppxpd
chmod 755 debian/ppxp-tcltk/usr/lib/ppxp/tkppxp/widgets/test.tcl
dh_installdocs -pppxp -pppxp-x11 -pppxp-tcltk -pppxp-dev
rm -rf debian/ppxp-dev/usr/share/doc/ppxp-dev
ln -s ppxp debian/ppxp-dev/usr/share/doc/ppxp-dev
# dh_installexamples
dh_installmenu -pppxp-x11 -pppxp-tcltk
# dh_installinit
# dh_installcron
# dh_installmanpages
cp doc/ja_JP/PPxP.1 debian/tmp/usr/share/man/ja/man1
cp doc/ja_JP/plast.1 debian/tmp/usr/share/man/ja/man1
cp doc/ja_JP/ppxp-files.5 debian/tmp/usr/share/man/ja/man5
# dh_undocumented -pppxp-forms fppxp.1
dh_undocumented -pppxp-x11 xppxp.1x xppxpm.1x
dh_undocumented -pppxp-tcltk tkppxp.1 qdial.1
ln -s PPxP.1.gz debian/tmp/usr/share/man/ja/man1/ppxp.1.gz
ln -s PPxP.1.gz debian/tmp/usr/share/man/ja/man1/in.ppxp.1.gz
ln -s PPxP.1.gz debian/tmp/usr/share/man/ja/man1/ppxpd.1.gz
dh_installchangelogs -pppxp -pppxp-tcltk -pppxp-x11
dh_strip
dh_compress
dh_suidregister
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_shlibdeps -pppxp-x11
dh_shlibdeps -pppxp-tcltk
# dh_shlibdeps -pppxp-forms
dh_gencontrol
dh_gencontrol -pppxp-x11
dh_gencontrol -pppxp-tcltk
# dh_gencontrol -pppxp-forms
dh_gencontrol -pppxp-dev
# dh_makeshlibs
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|