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
|
#!/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.
export DH_COMPAT=3
CFLAGS = -O2 -Wall
INSTALL = install
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
package=agbrowser
build:
dh_testdir
./configure --prefix=/usr
$(MAKE) CFLAGS="$(CFLAGS)"
touch build
clean:
dh_testdir
dh_testroot
-rm -f build
-$(MAKE) distclean
-rm -f `find . -name "*~"`
-rm -rf debian/$(package) debian/files* core debian/substvars
binary-indep: build
#$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
#$(checkdir)
#-rm -rf debian/tmp
#install -d debian/tmp
#cd debian/tmp && install -d `cat ../dirs`
$(MAKE) install prefix=`pwd`/debian/$(package)/usr
# Must have debmake installed for this to work. Otherwise please copy
# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
#debstd ChangeLog README TODO
dh_installchangelogs
dh_installmenu
dh_installdocs README AUTHORS TODO
#dh_undocumented -A
dh_installmanpages
#dpkg-gencontrol -isp
#chown -R root.root debian/tmp
#chmod -R go=rX debian/tmp
#dpkg --build debian/tmp ..
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
|