File: rules

package info (click to toggle)
defendguin 0.0.12-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,904 kB
  • ctags: 400
  • sloc: ansic: 4,257; sh: 99; makefile: 57
file content (36 lines) | stat: -rwxr-xr-x 1,233 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk
include /usr/share/cdbs/1/class/makefile.mk

# Beware to add rules after needed CDBS includes

#export DH_VERBOSE=1

TARGET = defendguin

# CFLAGS set by upstream Makefile are overwritten by CDBS, overwrite them by upstream values
SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs) -L/usr/X11R6/lib
MIXER=-lSDL_mixer
NOSOUNDFLAG=__SOUND
SDL_LIB=$(SDL_LDFLAGS) $(MIXER)

CFLAGS+=-Wall $(SDL_CFLAGS) -DDATA_PREFIX=\\\"/usr/share/games/defendguin/\\\" -D$(NOSOUNDFLAG) -DJOY_YES
CXXFLAGS=
LDFLAGS=$(SDL_LIB) -lm

DEB_MAKE_INSTALL_TARGET  := install \
         DESTDIR=$(CURDIR)/debian/$(TARGET) \
         BIN_PREFIX=$(CURDIR)/debian/$(TARGET)/usr/games \
         MAN_PREFIX=$(CURDIR)/debian/$(TARGET)/usr/share \
         DATA_PREFIX=$(CURDIR)/debian/$(TARGET)-data/usr/share/games/$(TARGET)/
	# dh_movefiles is not called, see #478903

DEB_INSTALL_CHANGELOGS_ALL := docs/CHANGES.txt

install/defendguin::
	install -D -m 644 debian/$(TARGET)-icon.xpm $(CURDIR)/debian/$(TARGET)/usr/share/pixmaps/
	install -D -m 644 debian/$(TARGET).desktop $(CURDIR)/debian/$(TARGET)/usr/share/applications/