Package list metche / 8fc5dc8 debian / rules
8fc5dc8

Tree @8fc5dc8 (Download .tar.gz)

rules @8fc5dc8raw · history · blame

#!/usr/bin/make -f
# debian rules file for metche

PACKAGE = metche
DESTDIR = $(CURDIR)/debian/$(PACKAGE)

build: build-stamp
build-stamp:
	dh_testdir
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) clean
	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs
	cp $(CURDIR)/metche $(DESTDIR)/usr/sbin
	cp $(CURDIR)/metche.conf.default $(DESTDIR)/etc/metche.conf
	cp $(CURDIR)/metche.8 $(DESTDIR)/usr/share/man/man8
	chown root:staff $(DESTDIR)/var/lib/metche
	chmod 750 $(DESTDIR)/var/lib/metche

# Build architecture-independent files here.
binary-indep: build install

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_installexamples
	dh_installdebconf
	dh_installcron
	dh_installman metche.8
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install