Commit 4319f042 authored by Andreas Rönnquist's avatar Andreas Rönnquist

Migrate to dh

parent 3e87d760
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
......@@ -8,49 +6,13 @@
export DEB_BUILD_HARDENING=1
export LDFLAGS += -Wl,-z,relro -Wl,--as-needed
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
dh_auto_build -- PREFIX=/usr
touch build-stamp
PACKAGE = $(shell dh_listpackages)
clean:
dh_testdir
dh_testroot
rm -f build-stamp
$(MAKE) clean
dh_clean
%:
dh $@
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) PREFIX=`pwd`/debian/`dh_listpackages`/usr install
override_dh_auto_build:
$(MAKE) PREFIX=/usr
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
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
override_dh_auto_install:
$(MAKE) DESTDIR=$$(pwd)/debian/$(PACKAGE) PREFIX=/usr install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment