#!/usr/bin/make -f # -*- makefile -*- # Oinkmaster's debian/rules # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif build: dh_testdir touch build-stamp clean: dh_testdir dh_testroot dh_clean rm -f build-stamp configure-stamp install: build dh_testdir dh_testroot dh_clean -k dh_installdirs install -m 755 oinkmaster.pl debian/oinkmaster/usr/sbin/oinkmaster install -m 640 oinkmaster.conf debian/oinkmaster/etc/ install -m 755 contrib/* debian/oinkmaster/usr/share/oinkmaster/ -rm -f debian/oinkmaster/usr/share/oinkmaster/README* binary-arch: build install binary-indep: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs contrib/README.contrib dh_installexamples template-examples.conf # dh_install # dh_installdebconf # dh_installcron dh_installman oinkmaster.1 dh_compress dh_fixperms dh_perl dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure