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.
16 cd d2x-sdl && ../configure --disable-debug --enable-release \
17 --prefix=/usr --bindir=\$${prefix}/games
23 # Add here commands to configure the package.
25 cd d2x-ogl && ../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.
40 build-gl-stamp: configure-gl-stamp
43 # Add here commands to compile the package.
51 rm -f build-stamp configure-stamp
53 # Add here commands to clean up after the build process.
54 rm -rf d2x-sdl d2x-ogl
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-ogl
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
103 binary: binary-indep binary-arch
104 .PHONY: build clean binary-indep binary-arch binary install configure