2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 # This is the debhelper compatability version to use.
11 configure: configure-stamp configure-gl-stamp
14 # Add here commands to configure the package.
15 mkdir -p build_d2x-sdl
16 cd build_d2x-sdl && ../configure --disable-debug --enable-release \
17 --prefix=/usr --bindir=\$${prefix}/games
23 # Add here commands to configure the package.
25 cd build_d2x-gl && ../configure --disable-debug --enable-release --with-opengl \
26 --prefix=/usr --bindir=\$${prefix}/games
28 touch configure-gl-stamp
30 build: build-stamp build-gl-stamp
32 build-stamp: configure-stamp
35 # Add here commands to compile the package.
36 cd build_d2x-sdl && $(MAKE)
40 build-gl-stamp: configure-gl-stamp
43 # Add here commands to compile the package.
44 cd build_d2x-gl && $(MAKE)
51 rm -f build-stamp configure-stamp
53 # Add here commands to clean up after the build process.
54 rm -rf build_d2x-sdl build_d2x-gl
64 # Add here commands to install the package into debian/d2x.
65 cd build_d2x-sdl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x-sdl
66 cd build_d2x-gl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x-gl
69 # Build architecture-independent files here.
70 binary-indep: build install
71 # We have nothing to do by default.
73 # Build architecture-dependent files here.
74 binary-arch: build install
78 dh_installdocs -A NEWS
89 dh_undocumented -pd2x-sdl d2x-sdl.6
90 dh_undocumented -pd2x-gl d2x-gl.6
104 binary: binary-indep binary-arch
105 .PHONY: build clean binary-indep binary-arch binary install configure