File: Makefile

package info (click to toggle)
angrydd 1.0.1-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,708 kB
  • sloc: python: 3,488; makefile: 42; sh: 1
file content (50 lines) | stat: -rw-r--r-- 1,253 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/make -f

# Makefile for Angry, Drunken Dwarves.
# $Id: Makefile 319 2006-01-12 21:30:11Z piman $

PREFIX ?= /usr

MODULES = ai.py \
          boxes.py \
          characters.py \
          charselect.py \
          config.py \
          constants.py \
          dirstore.py \
          events.py \
          game.py \
          howtoplay.py \
          load.py \
          menu.py \
          pygame_ext.py \
          textfx.py \
          unlocker.py \
          util.py \
          wipes.py

TO = share/games/angrydd

all: check

check:
	@/bin/echo -n "Checking for Python... "
	@which python3 || ( echo "Not found." && /bin/false )
	@./check.py

install:
	install -d $(DESTDIR)$(PREFIX)/$(TO)/characters
	install -m 755 angrydd.py $(DESTDIR)$(PREFIX)/$(TO)
	install -m 644 $(MODULES) angrydd.png $(DESTDIR)$(PREFIX)/$(TO)
	cp -R music sounds images $(DESTDIR)$(PREFIX)/$(TO)
	cp -R characters/*.dwarf* characters/default $(DESTDIR)$(PREFIX)/$(TO)/characters
	install -d $(DESTDIR)$(PREFIX)/games
	ln -sf ../$(TO)/angrydd.py $(DESTDIR)$(PREFIX)/games/angrydd
	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man6/
	install -m 644 angrydd.6 $(DESTDIR)$(PREFIX)/share/man/man6/angrydd.6

clean:
	rm -f *.pyc

distclean: clean
	rm -f *~ angryddrc \#*