#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) DEB_HOST_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM) VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) EXTRA_VERSION = Debian $(VERSION) ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CONFIG_DEBUG = true endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) endif export EXTRA_VERSION CONFIG_DEBUG PACKAGE_PREFIX = navalive-cdrom-misc PACKAGES = $(PACKAGE_PREFIX) DEBHELPER_PACKAGES = $(patsubst %,-p%,$(PACKAGES)) build-arch: build-arch-all build-arch-all: build-arch .NOTPARALLEL: build-arch-static build-arch build-arch: build-arch-stamp build-arch-stamp: mkdir $(CURDIR)/debian/tmp chmod 0755 $(CURDIR)/debian/tmp cp -r $(CURDIR)/THANKS $(CURDIR)/LEGAL $(CURDIR)/AUTHORS $(CURDIR)/autorun.* $(CURDIR)/cdrom.ico $(CURDIR)/images $(CURDIR)/index.html $(CURDIR)/debian/tmp/ touch $@ build: build-arch clean: dh_testdir dh_testroot rm -f build-*-stamp dh_clean install: build-arch-all dh_testdir dh_testroot dh_clean -k $(DEBHELPER_PACKAGES) dh_installdirs $(DEBHELPER_PACKAGES) # for i in $(PACKAGES); do \ # ( \ # cd install-$$i; \ # find -type d -exec install -d $(CURDIR)/debian/$$i/{} \;; \ # find \( -type f -o -type l \) -exec cp -a {} $(CURDIR)/debian/$$i/{} \;; \ # ); \ # done binary-arch: binary-arch # Build architecture-dependent files here. binary-arch: build-arch-all install dh_testdir dh_testroot dh_strip $(DEBHELPER_PACKAGES) dh_link $(DEBHELPER_PACKAGES) dh_compress $(DEBHELPER_PACKAGES) dh_fixperms $(DEBHELPER_PACKAGES) dh_installdeb $(DEBHELPER_PACKAGES) dh_shlibdeps $(DEBHELPER_PACKAGES) dh_gencontrol dh_builddeb binary: binary-arch .PHONY: build clean binary-indep binary-arch binary install