File: rules

package info (click to toggle)
freeplane 1.3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 26,424 kB
  • sloc: java: 112,015; xml: 2,599; sh: 190; perl: 130; haskell: 55; makefile: 26
file content (45 lines) | stat: -rwxr-xr-x 1,504 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
39
40
41
42
43
44
45
#!/usr/bin/make -f
# debian/rules for Commons Fileupload (uses CDBS)

#clean:: buildxml-clean

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
# replaced by quilt: include /usr/share/cdbs/1/rules/simple-patchsys.mk

JAVA_HOME_DIRS       := /usr/lib/jvm/default-java

DEB_ANT_BUILD_TARGET := build
#DEB_BUILDDIR         := .
DEB_COMPRESS_EXCLUDE := .mm .pdf
# DEB_INSTALL_DOCS_ALL = -Xlicense
DEB_DH_INSTALL_ARGS := -XLICENSE.txt

build:
	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

clean:: 
# directories cannot be removed via debian/clean
	if [ -d 48x48 ]; then rmdir 48x48; fi
	if [ -d 64x64 ]; then rmdir 64x64; fi
	if [ -d 128x128 ]; then rmdir 128x128; fi

#buildxml-clean::
#	-$(DEB_ANT_INVOKE) $(DEB_ANT_CLEAN_TARGET)

# Get original sources directly using uscan
get-orig-source:
	uscan --force-download --rename --repack