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