File: rules

package info (click to toggle)
leocad 0.83.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,976 kB
  • ctags: 10,456
  • sloc: cpp: 45,639; ansic: 179; makefile: 23; xml: 22
file content (38 lines) | stat: -rwxr-xr-x 1,008 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
38
#!/usr/bin/make -f
# -*- makefile -*-

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

export PREFIX=/usr

ifndef UPVER
UPVER   := $(shell dpkg-parsechangelog | grep ^Version | awk '{print $$2}' | cut -d- -f1)
endif
SVNREPO := http://svn.leocad.org/tags

#skip check for newer versions online
export DEB_CPPFLAGS_MAINT_APPEND = -DLC_DISABLE_UPDATE_CHECK

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

# Install icon too
override_dh_install:
	dh_install
	install -m644 -D tools/icon/leocad-32.png \
		debian/leocad/usr/share/icons/hicolor/32x32/apps/leocad.png

override_dh_installdocs:
	dh_installdocs
	rm debian/leocad/usr/share/doc/leocad/COPYING.txt
	mv debian/leocad/usr/share/doc/leocad/upstream-changelog debian/leocad/usr/share/doc/leocad/changelog

get-orig-source:
	svn checkout $(SVNREPO)/leocad-$(UPVER)
	find leocad-$(UPVER)/ -name ".svn" -type d | xargs rm -rf
	tar cf leocad_$(UPVER).orig.tar leocad-$(UPVER)
	bzip2 leocad_$(UPVER).orig.tar
	rm -rf leocad-$(UPVER)/