File: rules

package info (click to toggle)
overgod 1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,872 kB
  • sloc: ansic: 31,576; makefile: 22; sh: 10
file content (37 lines) | stat: -rwxr-xr-x 1,001 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
37
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

-include /usr/share/dpkg/buildtools.mk

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

CFLAGS+=$(shell allegro-config --cflags)
LIBS=$(shell allegro-config --libs) -lm

CFLAGS+=-fgnu89-inline

%:
	dh $@ --no-parallel

override_dh_auto_configure:

override_dh_auto_build:
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(shell LC_ALL=C ls *.c) -o overgod $(LIBS)

override_dh_install:
	mkdir -p $(CURDIR)/debian/overgod/usr/games
	cp debian/overgod.sh $(CURDIR)/debian/overgod/usr/games/overgod
	chmod +x debian/overgod/usr/games/overgod
	mkdir -p $(CURDIR)/debian/overgod-data/usr/share/games/overgod
	cp overgod.cfg $(CURDIR)/debian/overgod-data/usr/share/games/overgod/default.cfg
	dh_install

override_dh_clean:
	rm -f overgod
	dh_clean