File: rules

package info (click to toggle)
freeplane 1.7.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 36,368 kB
  • sloc: java: 131,702; xml: 2,380; sh: 172; perl: 138; makefile: 28
file content (38 lines) | stat: -rwxr-xr-x 1,153 bytes parent folder | download | duplicates (2)
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
#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