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)
37 cd build_d2x-sdl/libmve && $(MAKE) mveplayer
38 cd build_d2x-sdl/utilities && $(MAKE) utils
42 build-gl-stamp: configure-gl-stamp
45 # Add here commands to compile the package.
46 cd build_d2x-gl && $(MAKE)
53 rm -f build-stamp configure-stamp
55 # Add here commands to clean up after the build process.
56 rm -rf build_d2x-sdl build_d2x-gl
66 # Add here commands to install the package into debian/d2x.
67 cd build_d2x-sdl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x-sdl
68 cd build_d2x-gl && $(MAKE) install DESTDIR=$(CURDIR)/debian/d2x-gl
71 # Build architecture-independent files here.
72 binary-indep: build install
73 # We have nothing to do by default.
75 # Build architecture-dependent files here.
76 binary-arch: build install
80 dh_installdocs -A NEWS
92 dh_undocumented -pd2x-sdl d2x-sdl.6
93 dh_undocumented -pd2x-gl d2x-gl.6
107 binary: binary-indep binary-arch
108 .PHONY: build clean binary-indep binary-arch binary install configure