#!/usr/bin/make -f # $Id: rules 714M 2012-06-18 06:31:55Z (local) $ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DOCDIR=$(CURDIR)/debian/sawfish-themes/usr/share/doc/sawfish-themes THEMEDIR=$(CURDIR)/debian/sawfish-themes/usr/share/sawfish/themes THEMES=2YearsToNever absolute-metal Anonymous Aquiline BWM Big \ Blackwindow Bubbles_Exact CoolClean Derivative DoubleHeliX Elberg \ FinalStep Empire gorilla Greene2.0 Hacksaw HeliX Klarth \ Microtene OrangeJuice SawLook SawthenaForever Strap Studio \ Titanium T-16-blue T-16-red T-16-yellow V bluefoo gorillaz \ mxflat typo build-arch: build build-indep: build build: build-stamp build-stamp: dh_testdir QUILT_PATCHES=debian/patches quilt push -a # arrange the upstream documentation to dh_installdocs' liking for t in $(THEMES) ; do \ for f in $$t/README* ; do \ [ -e "$$f" ] || continue ; \ rn=`basename $$f|sed "s/README/README.$$t/"` ; \ install -D "$$f" $(CURDIR)/debian/doc/$$rn ; \ done ; \ for f in $$t/TODO* ; do \ [ -e "$$f" ] || continue ; \ rn=`basename $$f|sed "s/TODO/TODO.$$t/"` ; \ install -D "$$f" $(CURDIR)/debian/doc/$$rn ; \ done ; \ for f in changelog ChangeLog CHANGES CHANGELOG ; do \ [ -e "$$t/$$f" ] || continue ; \ install -D "$$t/$$f" \ $(CURDIR)/debian/doc/changelog.$$t ; \ done \ done # no compile stage touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp rm -rf $(CURDIR)/debian/doc dh_clean QUILT_PATCHES=debian/patches quilt pop -a || : install: build dh_testdir dh_testroot dh_prep dh_installdirs for t in $(THEMES) ; do \ mkdir -p $(THEMEDIR)/$$t ; \ find $$t/* ! -path '*.xvpics*' -a \ \( -name \*.png \ -o -name \*.jl \ -o -name \*.xpm \) | \ xargs -i install -m 0644 -D {} $(THEMEDIR)/{} ;\ done # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installdocs $(CURDIR)/debian/doc/* dh_installchangelogs debian/changelog-stub #dh_installexamples #dh_installman dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: build install # We have nothing to do by default. binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install