deb stuff
[btb/d2x.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatability version to use.
9 export DH_COMPAT=2
10
11 configure: configure-stamp configure-gl-stamp
12 configure-stamp:
13         dh_testdir
14         # Add here commands to configure the package.
15         mkdir -p d2x-sdl
16         cd d2x-sdl && ../configure --disable-debug --enable-release \
17                 --prefix=/usr --bindir=\$${prefix}/games
18
19         touch configure-stamp
20
21 configure-gl-stamp:
22         dh_testdir
23         # Add here commands to configure the package.
24         mkdir -p d2x-ogl
25         cd d2x-ogl && ../configure --disable-debug --enable-release --with-opengl \
26                 --prefix=/usr --bindir=\$${prefix}/games
27
28         touch configure-gl-stamp
29
30 build: build-stamp build-gl-stamp
31
32 build-stamp: configure-stamp 
33         dh_testdir
34
35         # Add here commands to compile the package.
36         cd d2x-sdl && $(MAKE)
37
38         touch build-stamp
39
40 build-gl-stamp: configure-gl-stamp 
41         dh_testdir
42
43         # Add here commands to compile the package.
44         cd d2x-ogl && $(MAKE)
45
46         touch build-stamp
47
48 clean:
49         dh_testdir
50         dh_testroot
51         rm -f build-stamp configure-stamp
52
53         # Add here commands to clean up after the build process.
54         rm -rf d2x-sdl d2x-ogl
55
56         dh_clean
57
58 install: build
59         dh_testdir
60         dh_testroot
61         dh_clean -k
62         dh_installdirs
63
64         # Add here commands to install the package into debian/d2x.
65         cd d2x-sdl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x
66         cd d2x-ogl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x-gl
67
68
69 # Build architecture-independent files here.
70 binary-indep: build install
71 # We have nothing to do by default.
72
73 # Build architecture-dependent files here.
74 binary-arch: build install
75         dh_testdir
76         dh_testroot
77 #       dh_installdebconf       
78         dh_installdocs
79         dh_installexamples
80         dh_installmenu
81 #       dh_installlogrotate
82 #       dh_installemacsen
83 #       dh_installpam
84 #       dh_installmime
85 #       dh_installinit
86         dh_installcron
87         dh_installman
88         dh_installinfo
89 #       dh_undocumented
90         dh_installchangelogs
91         dh_link
92         dh_strip
93         dh_compress
94         dh_fixperms
95 #       dh_makeshlibs
96         dh_installdeb
97 #       dh_perl
98         dh_shlibdeps
99         dh_gencontrol
100         dh_md5sums
101         dh_builddeb
102
103 binary: binary-indep binary-arch
104 .PHONY: build clean binary-indep binary-arch binary install configure