Mercurial > bins
view debian/rules @ 10:f962189bab94
Added tag 1.1.29.e2 for changeset 0f248ad86f9f
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Thu, 16 Oct 2008 00:16:50 +0200 |
parents | c5749e43b1d7 |
children |
line wrap: on
line source
#!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #LANGS=de fr pl LFILES=$(subst intl/,,$(wildcard intl/??.mo)) LANGS=$(LFILES:.mo=) GUILFILES=$(subst intl/gui-,,$(wildcard intl/gui-??.mo)) GUILANGS=$(GUILFILES:.mo=) CFLAGS += -g ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif version := $(shell dpkg-parsechangelog | \ sed -ne 's/^Version: *\([0-9]\+:\)*//p') tag: cvs tag -c -F $(subst .,_,debian_version_$(version)) include /usr/share/quilt/quilt.make configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-stamp build-stamp: patch configure-stamp dh_testdir touch build-stamp clean: unpatch dh_testdir dh_testroot if [ -f doc/bins.1.bak ]; then \ mv doc/bins.1.bak doc/bins.1; fi dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # backup original manpages mv doc/bins.1 doc/bins.1.bak # regeneate modified manpages docbook-to-man doc/bins.sgml > doc/bins.1 # Add here commands to install the package into debian/bins. echo | ( DESTDIR=`pwd`/debian/bins PREFIX=/usr ./install.sh ) install -m 0755 tools/bins_cleanupgallery debian/bins/usr/bin/ install -m 0755 tools/add_num_prefix debian/bins/usr/share/doc/bins/examples/ install -m 0755 tools/anti_bins debian/bins/usr/share/doc/bins/examples/ install -m 0755 tools/bins_addtext debian/bins/usr/share/doc/bins/examples/ install -m 0755 tools/bins_txt2xml debian/bins/usr/share/doc/bins/examples/ install -m 0755 tools/remove_num_prefix debian/bins/usr/share/doc/bins/examples/ # install HTML documentation cp doc/*html debian/bins/usr/share/doc/bins/ # remove bins-edit-gui since it depends on Gtk+ 1.x find debian -name "bins-edit-gui*" -exec rm {} \; # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot # dh_installdebconf dh_installdocs dh_installexamples # dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron dh_installman # dh_installinfo # dh_undocumented dh_installchangelogs ChangeLog # dh_link # dh_strip dh_compress dh_fixperms # dh_makeshlibs dh_installdeb # dh_perl # dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: build install # We have nothing to do binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure