summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 5cb315b737b6e386360df4cde254822d89c618c4 (plain)
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

%:
	dh $@ \
		--buildsystem=cmake \
		--parallel \
		--dbg-package=colobot-dbg

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
	                     -DINSTALL_DOCS:BOOL=True \
	                     -DOPENAL_SOUND:BOOL=True

override_dh_auto_build:
	dh_auto_build -a
	dh_auto_build -i -- doc

merge-dev:
	set -e; \
	DEV_COMMIT=$$(git describe --tags dev | sed -e 's/^colobot-gold-pre_alpha-//g'); \
	git merge --no-commit dev; \
	dch -b -v 0.1.0~pre-alpha-git-dev~r$${DEV_COMMIT}-1~OdyX0 "New snapshot of dev branch ($${DEV_COMMIT})"; \
	sed -e "/New snapshot of dev branch ($${DEV_COMMIT})/d" -i debian/changelog ; \
	git add debian/changelog; \
	git commit -m "New snapshot of dev branch ($${DEV_COMMIT})"