File: rules

package info (click to toggle)
freeplane 1.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 35,988 kB
  • sloc: java: 130,441; xml: 2,373; sh: 172; perl: 138; makefile: 30
file content (42 lines) | stat: -rwxr-xr-x 1,214 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
39
40
41
42
#!/usr/bin/make -f
#DH_VERBOSE = 1

DEB_COMPRESS_EXCLUDE := .mm .pdf

%:
	dh $@ --buildsystem=gradle --no-parallel

override_dh_auto_build:
	dh_auto_build -- build -x test -x check_translation

	xsltproc --nonet \
         --param make.year.ranges 1 \
         --param make.single.year.ranges 1 \
         --param man.charmap.use.subset 0 \
         http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
        debian/freeplane.1.xml

	convert freeplane_framework/script/freeplane.png freeplane.xpm
	mkdir 48x48
	convert -background none -geometry !48x48 freeplane_framework/script/freeplane.svg 48x48/freeplane.png
	mkdir 64x64
	convert -background none -geometry !64x64 freeplane_framework/script/freeplane.svg 64x64/freeplane.png
	mkdir 128x128
	convert -background none -geometry !128x128 freeplane_framework/script/freeplane.svg 128x128/freeplane.png

	mv BIN/doc/api API
	mv BIN/doc DOC

override_dh_clean:
	dh_clean
# directories cannot be removed via debian/clean
	rm -rf BIN/
	rm -rf API/
	rm -rf DOC/
	if [ -d 48x48 ]; then rmdir 48x48; fi
	if [ -d 64x64 ]; then rmdir 64x64; fi
	if [ -d 128x128 ]; then rmdir 128x128; fi


get-orig-source:
	uscan --force-download --rename --repack