3
# Sample debian/rules that uses debhelper.
4
# This file was originally written by Joey Hess and Craig Small.
5
# As a special exception, when this file is copied by dh-make into a
6
# dh-make output file, you may use that output file without restriction.
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
9
# Uncomment this to turn on verbose mode.
11
DESTDIR=$(CURDIR)/debian/tmp
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23
configure: configure-stamp
26
# Add here commands to configure the package.
33
build-stamp: configure-stamp
36
# Add here commands to compile the package.
38
#docbook-to-man debian/balder2d.sgml > balder2d.1
45
rm -f build-stamp configure-stamp
47
# Add here commands to clean up after the build process.
49
rm -f scons-signatures*
53
install: build install-indep install-arch
61
# Add commands here to install the data files to debian/tmp.
62
# DESTDIR=$(CURDIR)/debian/tmp is defined above
63
mkdir -p $(DESTDIR)/usr/share/games/balder2d
64
cp -r $(CURDIR)/bin/* $(DESTDIR)/usr/share/games/balder2d/
65
rm $(DESTDIR)/usr/share/games/balder2d/balder2d
66
rm $(DESTDIR)/usr/share/games/balder2d/maps/balder2d_export.py
67
rm $(DESTDIR)/usr/share/games/balder2d/scripts/test/*
68
rmdir $(DESTDIR)/usr/share/games/balder2d/scripts/test
77
# Add commands here to install the binary files to debian/tmp.
78
# DESTDIR=$(CURDIR)/debian/tmp is defined above
79
mkdir -p $(DESTDIR)/usr/lib/balder2d
80
cp $(CURDIR)/bin/balder2d $(DESTDIR)/usr/lib/balder2d
81
mkdir -p $(DESTDIR)/usr/games
82
cp $(CURDIR)/run_balder.sh $(DESTDIR)/usr/games/balder2d
83
mkdir -p $(DESTDIR)/usr/share/applications/
84
cp $(CURDIR)/Balder2D.desktop $(DESTDIR)/usr/share/applications/
85
mkdir -p $(DESTDIR)/usr/share/pixmaps/
86
cp $(CURDIR)/bin/balder2d.xpm $(DESTDIR)/usr/share/pixmaps/
90
# Build architecture-independent files here.
91
binary-indep: build install
94
dh_installchangelogs -i
103
# Build architecture-dependent files here.
104
binary-arch: build install
107
dh_installchangelogs history.txt -a
109
dh_installman debian/balder2d.6 -a
120
binary: binary-indep binary-arch
121
.PHONY: build clean binary-indep binary-arch binary install configure