File: rules

package info (click to toggle)
micropolis-activity 0.0.20071228-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 24,856 kB
  • ctags: 10,179
  • sloc: ansic: 84,390; tcl: 12,083; makefile: 678; cpp: 541; yacc: 490; csh: 234; python: 190; sed: 32; sh: 23
file content (20 lines) | stat: -rwxr-xr-x 735 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@ 

override_dh_install:
	## change permissions of sound files
	find $(CURDIR)/res -name "*.wav" | while read a; do chmod -x $$a; done
	chmod +x $(CURDIR)/res/sounds/player
	## rename files and install Changes as upstream changelog
	cp $(CURDIR)/Micropolis $(CURDIR)/micropolis
	cp $(CURDIR)/src/notes/Changes $(CURDIR)/Changelog
	## create micropolis.xpm with imagemagick
	convert -monitor -resize 32x32 Micropolis.png debian/micropolis.xpm
	## install all files
	dh_install
	## remove arch-dependent files and embedded fonts
	rm -f $(CURDIR)/debian/micropolis-data/usr/share/games/micropolis/res/dejavu-lgc/*
	rm -f $(CURDIR)/debian/micropolis-data/usr/share/games/micropolis/res/sim