Rev 2 | Rev 23 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line | 
|---|---|---|---|
| 2 | magnus | 1 | #!/usr/bin/make -f  | 
        
| 2 | #-*- makefile -*-  | 
        ||
| 3 | # Made with the aid of dh_make, by Craig Small  | 
        ||
| 4 | # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.  | 
        ||
| 5 | # Some lines taken from debmake, by Christoph Lameter.  | 
        ||
| 6 | |||
| 7 | # Uncomment this to turn on verbose mode.  | 
        ||
| 8 | #export DH_VERBOSE=1  | 
        ||
| 9 | |||
| 10 | PACKAGE := $(shell dh_listpackages)  | 
        ||
| 11 | |||
| 12 | PERL = /usr/bin/perl  | 
        ||
| 13 | |||
| 14 | TMP := $(CURDIR)/debian/$(PACKAGE)  | 
        ||
| 15 | |||
| 16 | build: build-stamp  | 
        ||
| 17 | build-stamp:  | 
        ||
| 18 | dh_testdir  | 
        ||
| 19 | |||
| 20 | $(PERL) Makefile.PL INSTALLDIRS=vendor  | 
        ||
| 21 | $(MAKE)  | 
        ||
| 22 | $(MAKE) test || true  | 
        ||
| 23 | touch build-stamp  | 
        ||
| 24 | |||
| 25 | clean:  | 
        ||
| 26 | dh_testdir  | 
        ||
| 27 | dh_testroot  | 
        ||
| 28 | rm -f build-stamp  | 
        ||
| 29 | |||
| 20 | magnus | 30 | [ ! -f Makefile ] || $(MAKE) realclean  | 
        
| 2 | magnus | 31 | |
| 32 | dh_clean  | 
        ||
| 33 | |||
| 34 | install:  | 
        ||
| 35 | dh_testdir  | 
        ||
| 36 | dh_testroot  | 
        ||
| 37 | dh_clean -k  | 
        ||
| 38 | dh_installdirs  | 
        ||
| 39 | |||
| 40 | $(MAKE) install DESTDIR=$(TMP)/  | 
        ||
| 41 | |||
| 42 | # Remove any empty directories  | 
        ||
| 43 | 	find $(TMP)/usr -depth -type d -empty -exec rmdir '{}' ';' | 
        ||
| 44 | |||
| 45 | # Build architecture-dependent files here.  | 
        ||
| 46 | binary-arch:  | 
        ||
| 47 | dh_testdir  | 
        ||
| 48 | touch debian/files  | 
        ||
| 49 | # We have nothing to do by default.  | 
        ||
| 50 | |||
| 51 | # Build architecture-independent files here.  | 
        ||
| 52 | binary-indep: build install  | 
        ||
| 53 | dh_testdir  | 
        ||
| 54 | dh_testroot  | 
        ||
| 55 | dh_installdocs  | 
        ||
| 56 | dh_installman  | 
        ||
| 57 | dh_installchangelogs -k ChangeLog  | 
        ||
| 58 | dh_link  | 
        ||
| 59 | dh_compress usr/share/doc/$(PACKAGE)/Changes  | 
        ||
| 60 | dh_fixperms  | 
        ||
| 61 | dh_installdeb  | 
        ||
| 62 | dh_perl  | 
        ||
| 63 | dh_gencontrol  | 
        ||
| 64 | dh_md5sums  | 
        ||
| 65 | dh_builddeb  | 
        ||
| 66 | |||
| 67 | binary: binary-indep  | 
        ||
| 68 | .PHONY: build clean binary-indep binary-arch binary  |