ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/debian/rules
Revision: 1.1.1.1 (vendor branch)
Committed: Fri Feb 3 07:11:47 2006 UTC (18 years, 3 months ago) by root
Branch: UPSTREAM
CVS Tags: LAST_C_VERSION, UPSTREAM_2006_03_15, UPSTREAM_2006_02_22, UPSTREAM_2006_02_03, difficulty_fix_merge_060810_2300
Branch point for: difficulty_fix
Changes since 1.1: +0 -0 lines
Log Message:
initial import

File Contents

# User Rev Content
1 root 1.1 #!/usr/bin/make -f
2    
3     # Uncomment this to turn on verbose mode.
4     export DH_VERBOSE=1
5    
6     LIB_DIR = var/games/crossfire
7     DATADIR = usr/share/games/crossfire
8    
9     build: patch build-stamp
10     build-stamp:
11     dh_testdir
12    
13     # What max debug info, so turn it on
14     CFLAGS="-g3" \
15     ./configure --prefix=/$(LIB_DIR) \
16     --datadir=/usr/share/games \
17     --bindir=/usr/games \
18     --mandir=/usr/share/man \
19     --localstatedir=/var/games \
20     --sysconfdir=/etc
21    
22     # Add here commands to compile the package.
23     $(MAKE) all
24    
25     touch build-stamp
26    
27     clean: clean-patched unpatch
28    
29     clean-patched:
30     dh_testdir
31     dh_testroot
32     -rm -f build-stamp
33     -rm -f install-stamp
34     -rm -rf debian/crossfire-server
35    
36     # Add here commands to clean up after the build process.
37     -$(MAKE) distclean
38    
39     dh_clean
40    
41     patch: patch-stamp
42     patch-stamp:
43     dpatch apply-all --verbose
44     touch patch-stamp
45    
46     unpatch:
47     dpatch deapply-all --verbose
48     rm -rf patch-stamp debian/patched
49    
50     install: binary-indep binary-arch
51    
52     # Build architecture-independent files here.
53     binary-indep:
54     dh_testdir
55     dh_testroot
56     dh_clean -k -i
57     dh_installdirs -i
58    
59     cd lib && \
60     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
61    
62     cd lib && \
63     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
64    
65     cd utils && \
66     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
67    
68     # Clean up some
69     -rm -f $(CURDIR)/debian/tmp/usr/games/crossloop.pl
70     -rm -f $(CURDIR)/debian/tmp/usr/games/player_dl.pl
71    
72     cd doc && \
73     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
74    
75     dh_installdocs -A
76     dh_installdocs -pcrossfire-doc
77     dh_install -i
78    
79     # Build architecture-dependent files here.
80     binary-arch:
81     dh_testdir
82     dh_testroot
83     dh_installchangelogs
84    
85     cd random_maps && \
86     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
87    
88     cd server && \
89     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
90    
91     cd plugin && \
92     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
93    
94     cd devel && \
95     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
96    
97     cd crossedit && \
98     $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
99     dh_movefiles -pcrossfire-edit
100    
101     dh_installlogrotate
102     dh_installinit -r -- defaults 99 01
103     dh_installman
104     dh_strip --dbg-package=crossfire-server
105     dh_compress
106     dh_fixperms
107     dh_makeshlibs -V
108     dh_installdeb
109     dh_gencontrol
110     dh_md5sums
111     dh_builddeb
112    
113     source diff:
114     @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
115    
116     binary: binary-indep binary-arch
117     .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch