File: rules

package info (click to toggle)
wing 0.7-33
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,744 kB
  • sloc: cpp: 2,526; sh: 65; makefile: 16
file content (25 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DPKG_EXPORT_BUILDFLAGS = 1
export DPKG_EXPORT_BUILDTOOLS = 1
include /usr/share/dpkg/default.mk
include /usr/share/dpkg/buildtools.mk

%:
	dh $@

override_dh_auto_build:
	dh_auto_build --buildsystem=makefile -- -f makefile.unx CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)'

execute_before_dh_install:
	mkdir -p debian/wing-data/usr/share/games/wing
	mkdir -p debian/wing/var/games
	cp -af images debian/wing-data/usr/share/games/wing/
	cp -af levels debian/wing-data/usr/share/games/wing/
	cp -af sound debian/wing-data/usr/share/games/wing/

execute_before_dh_clean:
	[ ! -f makefile.unx ] || $(MAKE) -f makefile.unx clean