meillo@0: #!/usr/bin/make -f meillo@0: # -*- makefile -*- meillo@0: # Sample debian/rules that uses debhelper. meillo@0: # This file was originally written by Joey Hess and Craig Small. meillo@0: # As a special exception, when this file is copied by dh-make into a meillo@0: # dh-make output file, you may use that output file without restriction. meillo@0: # This special exception was added by Craig Small in version 0.37 of dh-make. meillo@0: meillo@0: # Uncomment this to turn on verbose mode. meillo@0: #export DH_VERBOSE=1 meillo@0: meillo@0: meillo@0: meillo@0: meillo@0: CFLAGS = -Wall -g meillo@0: meillo@0: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) meillo@0: CFLAGS += -O0 meillo@0: else meillo@0: CFLAGS += -O2 meillo@0: endif meillo@0: meillo@0: configure: configure-stamp meillo@0: configure-stamp: meillo@0: dh_testdir meillo@0: # Add here commands to configure the package. meillo@0: meillo@0: touch configure-stamp meillo@0: meillo@0: meillo@0: build: build-stamp meillo@0: meillo@0: build-stamp: configure-stamp meillo@0: dh_testdir meillo@0: meillo@0: # Add here commands to compile the package. meillo@0: $(MAKE) meillo@0: #docbook-to-man debian/genwebgallery.sgml > genwebgallery.1 meillo@0: meillo@0: touch $@ meillo@0: meillo@0: clean: meillo@0: dh_testdir meillo@0: dh_testroot meillo@0: rm -f build-stamp configure-stamp meillo@0: meillo@0: # Add here commands to clean up after the build process. meillo@0: -$(MAKE) clean meillo@0: meillo@0: dh_clean meillo@0: meillo@0: install: build meillo@0: dh_testdir meillo@0: dh_testroot meillo@0: dh_clean -k meillo@0: dh_installdirs meillo@0: meillo@0: # Add here commands to install the package into debian/genwebgallery. meillo@0: $(MAKE) DESTDIR=$(CURDIR)/debian/genwebgallery install meillo@0: meillo@0: meillo@0: # Build architecture-independent files here. meillo@0: binary-indep: build install meillo@0: dh_testdir meillo@0: dh_testroot meillo@9: dh_installchangelogs ChangeLog meillo@0: dh_installdocs meillo@0: dh_installexamples meillo@0: # dh_install meillo@0: # dh_installmenu meillo@0: # dh_installdebconf meillo@0: # dh_installlogrotate meillo@0: # dh_installemacsen meillo@0: # dh_installpam meillo@0: # dh_installmime meillo@0: # dh_python meillo@0: # dh_installinit meillo@0: # dh_installcron meillo@0: # dh_installinfo meillo@0: dh_installman meillo@0: dh_link meillo@0: dh_strip meillo@0: dh_compress meillo@0: dh_fixperms meillo@0: # dh_perl meillo@0: # dh_makeshlibs meillo@0: dh_installdeb meillo@0: dh_shlibdeps meillo@0: dh_gencontrol meillo@0: dh_md5sums meillo@0: dh_builddeb meillo@0: meillo@0: # Build architecture-dependent files here. meillo@0: binary-arch: build install meillo@0: # We have nothing to do by default. meillo@0: meillo@0: binary: binary-indep binary-arch meillo@0: .PHONY: build clean binary-indep binary-arch binary install configure