| 1 |
#!/usr/bin/make -f |
| 2 |
# Sample debian/rules that uses debhelper. |
| 3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
| 4 |
|
| 5 |
# Uncomment this to turn on verbose mode. |
| 6 |
#export DH_VERBOSE=1 |
| 7 |
|
| 8 |
CFLAGS = `dpkg-buildflags --get CFLAGS` |
| 9 |
LDFLAGS = `dpkg-buildflags --get LDFLAGS` |
| 10 |
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` |
| 11 |
|
| 12 |
configure: configure-stamp |
| 13 |
configure-stamp: |
| 14 |
dh_testdir |
| 15 |
dh_autoreconf |
| 16 |
# Add here commands to configure the package. |
| 17 |
dh_auto_configure -- CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" --with-external-libmspack=yes |
| 18 |
|
| 19 |
|
| 20 |
touch configure-stamp |
| 21 |
|
| 22 |
build: build-arch build-indep |
| 23 |
build-arch: build-stamp |
| 24 |
build-indep: build-stamp |
| 25 |
build-stamp: configure-stamp |
| 26 |
dh_testdir |
| 27 |
|
| 28 |
# Add here commands to compile the package. |
| 29 |
$(MAKE) |
| 30 |
cp ChangeLog changelog |
| 31 |
#/usr/bin/docbook-to-man debian/cabextract.sgml > cabextract.1 |
| 32 |
|
| 33 |
touch build-stamp |
| 34 |
|
| 35 |
clean: |
| 36 |
dh_autoreconf_clean |
| 37 |
dh_testdir |
| 38 |
dh_testroot |
| 39 |
rm -f build-stamp configure-stamp |
| 40 |
|
| 41 |
# Add here commands to clean up after the build process. |
| 42 |
[ ! -f Makefile ] || $(MAKE) clean |
| 43 |
|
| 44 |
dh_clean |
| 45 |
|
| 46 |
install: build |
| 47 |
dh_testdir |
| 48 |
dh_testroot |
| 49 |
dh_prep |
| 50 |
dh_installdirs |
| 51 |
|
| 52 |
# Add here commands to install the package into debian/cabextract. |
| 53 |
dh_auto_install |
| 54 |
cp $(CURDIR)/debian/cabextract.desktop $(CURDIR)/debian/cabextract/usr/share/apps/konqueror/servicemenus/ |
| 55 |
cp $(CURDIR)/debian/cabextract.desktop.kde4 $(CURDIR)/debian/cabextract/usr/share/kde4/services/ServiceMenus/cabextract.desktop |
| 56 |
uudecode -o $(CURDIR)/debian/cabextract/usr/share/icons/cab_extract.png $(CURDIR)/debian/cab_extract.png.uu |
| 57 |
uudecode -o $(CURDIR)/debian/cabextract/usr/share/icons/cab_view.png $(CURDIR)/debian/cab_view.png.uu |
| 58 |
|
| 59 |
|
| 60 |
# Build architecture-independent files here. |
| 61 |
binary-indep: build install |
| 62 |
# We have nothing to do by default. |
| 63 |
|
| 64 |
# Build architecture-dependent files here. |
| 65 |
binary-arch: build install |
| 66 |
dh_testdir |
| 67 |
dh_testroot |
| 68 |
# dh_installdebconf |
| 69 |
dh_installdocs |
| 70 |
dh_installexamples |
| 71 |
dh_installmenu |
| 72 |
# dh_installemacsen |
| 73 |
# dh_installpam |
| 74 |
# dh_installinit |
| 75 |
dh_installcron |
| 76 |
dh_installman $(CURDIR)/doc/cabextract.1 |
| 77 |
dh_installinfo |
| 78 |
# dh_undocumented |
| 79 |
dh_installchangelogs |
| 80 |
dh_link |
| 81 |
dh_strip |
| 82 |
dh_compress |
| 83 |
dh_fixperms |
| 84 |
# dh_makeshlibs |
| 85 |
dh_installdeb |
| 86 |
# dh_perl |
| 87 |
dh_shlibdeps |
| 88 |
dh_gencontrol |
| 89 |
dh_md5sums |
| 90 |
dh_builddeb |
| 91 |
|
| 92 |
binary: binary-indep binary-arch |
| 93 |
.PHONY: build clean binary-indep binary-arch binary install configure |