ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra/debian/rules
Revision: 1.1
Committed: Wed May 9 12:58:57 2007 UTC (17 years ago) by pippijn
Branch: MAIN
CVS Tags: rel-2_01, rel-0_99, rel-1_12, rel-1_0, rel-1_2, rel-2_2, rel-2_0, rel-2_1, rel-1_1, rel-1_11, rel-1_29, rel-1_13, rel-1_222, rel-1_24, rel-1_25, rel-1_221, rel-1_23, rel-1_22, rel-1_30, HEAD
Log Message:
added debian package building files

File Contents

# User Rev Content
1 pippijn 1.1 #!/usr/bin/make -f
2    
3     # Uncomment this to turn on verbose mode.
4     #export DH_VERBOSE=1
5    
6     # If set to a true value then MakeMaker's prompt function will
7     # always return the default without waiting for user input.
8     export PERL_MM_USE_DEFAULT=1
9    
10     PACKAGE=$(shell dh_listpackages)
11    
12     ifndef PERL
13     PERL = /usr/bin/perl
14     endif
15    
16     TMP =$(CURDIR)/debian/$(PACKAGE)
17    
18     build: build-stamp
19     build-stamp:
20     dh_testdir
21    
22     # Add commands to compile the package here
23     $(PERL) Makefile.PL INSTALLDIRS=vendor
24     $(MAKE) OPTIMIZE="-Wall -O2 -g"
25    
26     touch build-stamp
27    
28     clean:
29     dh_testdir
30     dh_testroot
31    
32     # Add commands to clean up after the build process here
33     [ ! -f Makefile ] || $(MAKE) realclean
34    
35     dh_clean build-stamp install-stamp
36    
37     install: build install-stamp
38     install-stamp:
39     dh_testdir
40     dh_testroot
41     dh_clean -k
42    
43     # Add commands to install the package into debian/$PACKAGE_NAME here
44     $(MAKE) test
45     $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
46    
47     # As this is a architecture independent package, we are not
48     # supposed to install stuff to /usr/lib. MakeMaker creates
49     # the dirs, we delete them from the deb:
50     rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
51    
52     touch install-stamp
53    
54     binary-arch:
55     # We have nothing to do by default.
56    
57     binary-indep: build install
58     dh_testdir
59     dh_testroot
60     # dh_installcron
61     # dh_installmenu
62     # dh_installexamples
63     dh_installdocs res/README
64     dh_installchangelogs Changes
65     dh_perl
66     dh_link
67     dh_strip
68     dh_compress
69     dh_fixperms
70     dh_installdeb
71     dh_gencontrol
72     dh_md5sums
73     dh_builddeb
74    
75     source diff:
76     @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
77    
78     binary: binary-indep binary-arch
79     .PHONY: build clean binary-indep binary-arch binary