File: rules

package info (click to toggle)
simutrans-pak128.britain 1.18-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 185,052 kB
  • sloc: makefile: 157; python: 81; sh: 2
file content (25 lines) | stat: -rwxr-xr-x 746 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
#! /usr/bin/make -f

# revision to use when building .orig.tar.gz
SVNREV  = 1991
VERSION = 1.18
SVNROOT = https://svn.code.sf.net/p/simutrans/code

STAGING := $(CURDIR)/debian/simutrans-pak128.britain

%:
	dh $@

override_dh_auto_build:
	$(MAKE) SVNREV=$(SVNREV) all

override_dh_install:
	dh_install
	rmdir --ignore-fail-on-non-empty $(STAGING)/usr/share/games/simutrans/pak128.Britain/text/citylists

get-orig-source:
	svn export -r $(SVNREV) $(SVNROOT)/pak128.Britain ../simutrans-pak128.britain-$(VERSION)
	find ../simutrans-pak128.britain-$(VERSION) -name "*.pak" -print -delete
	cd ../simutrans-pak128.britain-$(VERSION) && \
	tar -caf "../simutrans-pak128.britain_$(VERSION).orig.tar.xz" *
	$(RM) -r ..\simutrans-pak128.britain-$(VERSION)