File: rules

package info (click to toggle)
pleiades 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 144,860 kB
  • ctags: 938
  • sloc: java: 7,163; xml: 1,361; sh: 52; makefile: 26
file content (42 lines) | stat: -rwxr-xr-x 1,506 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

packagename=pleiades
eclipse_dir=usr/share/eclipse

UPSTREAM_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ':' | sed 's/ //' | sed 's/-dfsg.*$$//')
COMPAT_VERSION = $(UPSTREAM_VERSION)~dfsg
REMOVE_FILES="srctest/jp/sourceforge/mergedoc/pleiades/resource/3.*"

%:
	dh  $@ --parallel

override_dh_auto_build:
	ant -Dbin.dir=$(CURDIR)/build/bin -Dbuild.dir=$(CURDIR)/build build.full

override_dh_auto_install:
	unzip -q -d $(CURDIR)/debian/$(packagename)/$(eclipse_dir) $(CURDIR)/build/nightly/$(packagename).zip
# remove unneeded files
	-rm $(CURDIR)/debian/$(packagename)/$(eclipse_dir)/*cmd
	-rm -r $(CURDIR)/debian/$(packagename)/$(eclipse_dir)/readme
	-rm -r $(CURDIR)/debian/$(packagename)/$(eclipse_dir)/plugins/jp.sourceforge.mergedoc.pleiades/lib

override_dh_installchangelogs:
	dh_installchangelogs $(CURDIR)/readme/readme_pleiades_changes.txt

#override_dh_clean:
#	debconf-updatepo
#	dh_clean

override_dh_builddeb:
	dh_builddeb -- -Zxz -Sextreme -z9

get-orig-source:
	TMPDIR=`mktemp -d`;\
	uscan --download-version $(UPSTREAM_VERSION) --destdir $$TMPDIR --force-download --no-symlink ;\
	mkdir -p $$TMPDIR/pleiades ;\
	unzip $$TMPDIR/pleiades_$(UPSTREAM_VERSION)-src.zip -d $$TMPDIR/pleiades ;\
	for i in $(REMOVE_FILES) ; do rm -rf $$TMPDIR/pleiades/$$i; done ;\
	cd $$TMPDIR; tar cJf pleiades_$(COMPAT_VERSION).orig.tar.xz pleiades ;\
	rm -rf $$TMPDIR/pleiades-$(UPSTREAM_VERSION)