123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #!/usr/bin/make -f
- # Copyright 2005, 2006, 2007 David Martínez Moreno.
- # Under GPL v2.
- # Uncomment this to turn on verbose mode.
- # export DH_VERBOSE=1
- DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
- ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
- PLATFORM=freebsd
- else
- PLATFORM=linux
- endif
- build: build-stamp
- build-stamp:
- dh_quilt_patch
- $(MAKE) PLATFORM=$(PLATFORM)
- touch build-stamp
- install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- dh_install
- dh_installdocs
- dh_installman
- dh_installchangelogs NEWS
- dh_link
- binary-arch: build install
- dh_testdir
- dh_testroot
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
- binary-indep:
- # do nothing
- binary: binary-arch binary-indep
- clean:
- dh_testdir
- dh_testroot
- $(MAKE) clean
- rm -f *-stamp
- dh_quilt_unpatch
- dh_clean
|