#!/usr/bin/make -f # Made with the aid of debmake, by Christoph Lameter, # based on the sample debian/rules file for GNU hello by Ian Jackson. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 package=xwatch prefix=usr/share docprefix=${prefix}/doc/${package} htmlprefix=${prefix}/doc/${package}/html build: $(checkdir) dh_auto_build --sourcedirectory=src -- final "STDLFLAGS=-L/usr/lib" "RGB_FILEFLAG = -DRGB_FILE=\\\"/usr/share/xwatch/rgb.txt\\\"" cd src; touch build clean: $(checkdir) cd src; rm -f build cd src; make clean # -rm -f `find . -name "*~"` # -rm -rf debian/xwatch debian/files* core debian/substvars # dh_clean wants to remove src/*.orig files -mv src/addline.c.orig src/addline.c-orig -mv src/.makedist.orig src/.makedist-orig dh_clean -mv src/addline.c-orig src/addline.c.orig -mv src/.makedist-orig src/.makedist.orig -rm -rf doc/tmp binary-indep: checkroot build $(checkdir) # There are no architecture-independent files to be uploaded # generated by this package. If there were any they would be # made here. binary-arch: checkroot build $(checkdir) -rm -rf debian/xwatch install -d debian/xwatch/etc/X11/app-defaults install -d debian/xwatch/usr/bin install -d debian/xwatch/usr/share/man/man1 install -m 755 src/xwatch `pwd`/debian/xwatch/usr/bin install -m 644 XWatch.ap `pwd`/debian/xwatch/etc/X11/app-defaults/XWatch install -d doc/tmp -cp doc/xwatch.yo doc/tmp (cd doc/tmp/; patch < ../../debian/xwatch.yo.debian-patch; yodl2html xwatch && yodl2txt xwatch && yodl2man xwatch ) install -d debian/xwatch/${htmlprefix} install -m 644 doc/tmp/xwatch.txt `pwd`/debian/xwatch/${docprefix}/ install -m 644 doc/tmp/xwatch.html `pwd`/debian/xwatch/${htmlprefix}/ install -m 644 doc/tmp/xwatch01.html `pwd`/debian/xwatch/${htmlprefix}/ install -m 644 doc/tmp/xwatch02.html `pwd`/debian/xwatch/${htmlprefix}/ install -m 644 doc/tmp/xwatch03.html `pwd`/debian/xwatch/${htmlprefix}/ install -m 644 doc/tmp/xwatch04.html `pwd`/debian/xwatch/${htmlprefix}/ install -m 644 doc/tmp/xwatch05.html `pwd`/debian/xwatch/${htmlprefix}/ (cd debian/xwatch/${htmlprefix} ; ln -s xwatch.html index.html) install -m 644 doc/tmp/xwatch.man `pwd`/debian/xwatch/usr/share/man/man1/xwatch.1 rm doc/tmp/* rmdir doc/tmp # Eventually remove this when rgb.txt is included in a smaller client X file. install -d debian/xwatch/usr/share/xwatch install -m 644 debian/rgb.txt debian/xwatch/usr/share/xwatch/ dh_installdirs install -m 644 ChangeLog `pwd`/debian/xwatch/${docprefix}/changelog gzip --best `pwd`/debian/xwatch/${docprefix}/changelog dh_installdocs MAINTAINER.README xwatch.README dh_installexamples dh_installchangelogs dh_installmenu dh_installcron # dh_installmanpages -pxwatch dh_strip dh_compress dh_fixperms dh_shlibdeps dh_gencontrol dh_installdeb dh_md5sums dh_builddeb define checkdir test -f debian/rules endef binary: binary-indep binary-arch checkroot: $(checkdir) test root = "`whoami`" build-arch: build build-indep: build .PHONY: build-arch build-indep binary binary-arch binary-indep clean checkroot