bjarni@285: #!/usr/bin/make -f bjarni@285: # -*- makefile -*- bjarni@285: # Sample debian/rules that uses debhelper. bjarni@285: # GNU copyright 1997 to 1999 by Joey Hess. bjarni@285: bjarni@285: # Uncomment this to turn on verbose mode. bjarni@285: #export DH_VERBOSE=1 bjarni@285: bjarni@285: bjarni@285: #not supported by openttd makefile bjarni@285: #CFLAGS = -Wall -g bjarni@285: # bjarni@285: #ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) bjarni@285: # CFLAGS += -O0 bjarni@285: #else bjarni@285: # CFLAGS += -O2 bjarni@285: #endif bjarni@285: #ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) bjarni@285: # INSTALL_PROGRAM += -s bjarni@285: #endif bjarni@285: bjarni@285: configure: configure-stamp bjarni@285: configure-stamp: bjarni@285: dh_testdir bjarni@285: # Add here commands to configure the package. bjarni@285: bjarni@285: touch configure-stamp bjarni@285: bjarni@285: bjarni@285: build: build-stamp bjarni@285: bjarni@285: build-stamp: configure-stamp bjarni@285: dh_testdir bjarni@285: bjarni@285: # Add here commands to compile the package. bjarni@285: bjarni@285: # we specifiy MANUAL_CONFIG here, so our settings take precedence over bjarni@285: # the ones in the existing Makefile.config (actually, the existing bjarni@285: # Makefile.config is not used at all, though it is overwritten) bjarni@285: rm Makefile.config bjarni@285: $(MAKE) PREFIX=/usr MIDI=/usr/bin/timidity INSTALL=1 bjarni@285: bjarni@285: #/usr/bin/docbook-to-man debian/openttd.sgml > openttd.1 bjarni@285: bjarni@285: touch build-stamp bjarni@285: bjarni@285: clean: bjarni@285: dh_testdir bjarni@285: dh_testroot bjarni@285: rm -f build-stamp configure-stamp bjarni@285: bjarni@285: # Add here commands to clean up after the build process. bjarni@285: -$(MAKE) clean bjarni@285: bjarni@285: dh_clean bjarni@285: bjarni@285: install: build bjarni@285: dh_testdir bjarni@285: dh_testroot bjarni@285: dh_clean -k bjarni@285: dh_installdirs bjarni@285: bjarni@285: # Add here commands to install the package into debian/openttd. bjarni@285: $(MAKE) DEST_DIR=debian/openttd install bjarni@285: bjarni@285: # Build architecture-independent files here. bjarni@285: binary-indep: build install bjarni@285: # We have nothing to do by default. bjarni@285: bjarni@285: # Build architecture-dependent files here. bjarni@285: binary-arch: build install bjarni@285: dh_testdir bjarni@285: dh_testroot bjarni@285: dh_installchangelogs changelog.txt bjarni@285: dh_installdocs bjarni@285: dh_installexamples bjarni@285: # dh_install bjarni@285: # dh_installmenu bjarni@285: # dh_installdebconf bjarni@285: # dh_installlogrotate bjarni@285: # dh_installemacsen bjarni@285: # dh_installpam bjarni@285: # dh_installmime bjarni@285: # dh_installinit bjarni@285: # dh_installcron bjarni@285: # dh_installinfo bjarni@285: dh_installman docs/openttd.6 bjarni@285: dh_link bjarni@285: dh_strip bjarni@285: dh_compress bjarni@285: dh_fixperms bjarni@285: # dh_perl bjarni@285: # dh_python bjarni@285: # dh_makeshlibs bjarni@285: dh_installdeb bjarni@285: dh_shlibdeps bjarni@285: dh_gencontrol bjarni@285: dh_md5sums bjarni@285: dh_builddeb bjarni@285: bjarni@285: binary: binary-indep binary-arch bjarni@285: .PHONY: build clean binary-indep binary-arch binary install configure