| 1 | #!/usr/bin/make -f |
|---|
| 2 | |
|---|
| 3 | DISABLE_UPDATE_UPLOADERS := 1 |
|---|
| 4 | include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk |
|---|
| 5 | -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk |
|---|
| 6 | GNOME_MODULE := libgtkhtml |
|---|
| 7 | |
|---|
| 8 | SONAME := 0 |
|---|
| 9 | LIB_PKG := libgtkhtml2-$(SONAME) |
|---|
| 10 | |
|---|
| 11 | configure: configure-stamp |
|---|
| 12 | configure-stamp: debian/control |
|---|
| 13 | dh_testdir |
|---|
| 14 | -test -r /usr/share/misc/config.sub && \ |
|---|
| 15 | cp -f /usr/share/misc/config.sub $(BUILD_DIR)/config.sub |
|---|
| 16 | -test -r /usr/share/misc/config.guess && \ |
|---|
| 17 | cp -f /usr/share/misc/config.guess $(BUILD_DIR)/config.guess |
|---|
| 18 | ./configure --prefix=/usr --sysconfdir=/etc |
|---|
| 19 | touch $@ |
|---|
| 20 | |
|---|
| 21 | build: build-stamp |
|---|
| 22 | build-stamp: configure-stamp |
|---|
| 23 | dh_testdir |
|---|
| 24 | $(MAKE) |
|---|
| 25 | touch $@ |
|---|
| 26 | |
|---|
| 27 | clean:: debian/control |
|---|
| 28 | dh_testdir |
|---|
| 29 | dh_testroot |
|---|
| 30 | rm -f *-stamp |
|---|
| 31 | [ ! -f Makefile ] || $(MAKE) distclean |
|---|
| 32 | dh_clean |
|---|
| 33 | sed -e 's#@SONAME@#$(SONAME)#g' \ |
|---|
| 34 | -e 's#@GNOME_TEAM@#$(UPLOADERS)#g' \ |
|---|
| 35 | debian/control.in >debian/control |
|---|
| 36 | |
|---|
| 37 | install: install-stamp |
|---|
| 38 | install-stamp: build-stamp |
|---|
| 39 | dh_testdir |
|---|
| 40 | dh_testroot |
|---|
| 41 | dh_clean |
|---|
| 42 | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
|---|
| 43 | |
|---|
| 44 | binary-indep: install |
|---|
| 45 | |
|---|
| 46 | binary-arch: install |
|---|
| 47 | dh_testdir |
|---|
| 48 | dh_testroot |
|---|
| 49 | dh_install -s --sourcedir=debian/tmp |
|---|
| 50 | dh_installdocs -p$(LIB_PKG) |
|---|
| 51 | dh_installman -s |
|---|
| 52 | dh_installchangelogs -p$(LIB_PKG) ChangeLog |
|---|
| 53 | dh_link -s |
|---|
| 54 | dh_strip -s --dbg-package=libgtkhtml2-dbg |
|---|
| 55 | dh_compress -s |
|---|
| 56 | dh_fixperms -s |
|---|
| 57 | dh_makeshlibs -s -V |
|---|
| 58 | dh_installdeb -s |
|---|
| 59 | dh_shlibdeps -s -ldebian/$(LIB_PKG)/usr/lib |
|---|
| 60 | dh_gencontrol -s |
|---|
| 61 | dh_md5sums -s |
|---|
| 62 | dh_builddeb -s |
|---|
| 63 | |
|---|
| 64 | binary: binary-indep binary-arch |
|---|
| 65 | .PHONY: configure build clean install binary-indep binary-arch binary |
|---|