2 # Based on the sample rules file written by Joey Hess.
4 # Uncomment this to turn on verbose mode.
9 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
20 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
21 MAKEFLAGS += -j$(NUMJOBS)
28 # Set HOME to an existent directory as a workaround for #544835. Note that
29 # HOME isn't actually used, but some buildds set it to a non-existent
30 # directory, and PhysicsFS currently fails if the directory doesn't exist
32 $(MAKE) $(MAKEFLAGS) \
33 DATADIR=/opt/maemo/usr/share/games/neverball \
34 LOCALEDIR=/usr/share/locale \
36 # Rename icons for .desktop files.
37 cp dist/neverball_128.png dist/neverball.png
38 cp dist/neverputt_128.png dist/neverputt.png
45 [ ! -f Makefile ] || $(MAKE) clean
46 rm -f dist/neverball.png dist/neverputt.png
56 # Build architecture-independent files here.
57 binary-indep: build install
60 dh_installchangelogs -i CHANGES
70 # Build architecture-dependent files here.
71 binary-arch: build install
74 dh_installchangelogs -a CHANGES
77 dh_strip -a --dbg-package=neverball-dbg
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install