[jasmin-sable] 17/78: Tidy debian/rules.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Feb 10 23:34:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository jasmin-sable.
commit d44276af9f76c35f0253154d43f185eb36e6ded9
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date: Sun Feb 10 16:53:05 2008 +0000
Tidy debian/rules.
Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>
---
debian/rules | 48 ++++++++++++++++--------------------------------
1 file changed, 16 insertions(+), 32 deletions(-)
diff --git a/debian/rules b/debian/rules
index bff4a2c..a740c8d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,52 +2,37 @@
include /usr/share/quilt/quilt.make
-CFLAGS = -Wall -g
+export JAVA_HOME=/usr/lib/jvm/java-gcj
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
+ export ANT_OPTS=-Dcompile.debug=true -Dcompile.optimize=false
else
- CFLAGS += -O2
+ export ANT_OPTS=-Dcompile.debug=true -Dcompile.optimize=true
endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- touch configure-stamp
build: patch build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
- $(MAKE)
- touch build-stamp
+build-stamp:
+ ant jasmin-jar
+ touch $@
clean: unpatch
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp
-
- cp -f ./debian/Makefile-jasmin ./Makefile
-
- $(MAKE) clean
-
+ rm -f build-stamp
+ ant clean
+ rm -rf lib/*.jar
dh_clean
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean
dh_installdirs
- $(MAKE) install PREFIX=/usr DEST=$(CURDIR)/debian/jasmin-sable/usr
+ cp -v lib/jasminclasses-*.jar debian/jasmin-sable/usr/share/java
+ cd debian/jasmin-sable/usr/share/java/; ln -v -s *.jar jasmin-sable.jar
+ cp -v bin/jasmin debian/jasmin-sable/usr/bin
-# Build architecture-dependent files here.
-binary-arch:
-
-# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
@@ -55,15 +40,14 @@ binary-indep: build install
dh_installdocs
dh_installexamples
dh_installman ./debian/jasmin.1
- dh_link
- dh_strip
dh_compress
dh_fixperms
dh_installdeb
- dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
+binary-arch: build install
+
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jasmin-sable.git
More information about the pkg-java-commits
mailing list