All pastes #39790 Raw Edit

IoP

public text v1 · immutable
#39790 ·published 2006-02-03 19:36 UTC
rendered paste body
--- debian/rules	2006-02-03 21:31:52.000000000 +0200
+++ debian/rules	2006-02-03 21:26:56.000000000 +0200
@@ -10,31 +10,22 @@
 #export DH_VERBOSE=1
 
 
+COMPILER?=jikes-classpath
 
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
+ifneq (,$(findstring nogui,$(DEB_BUILD_OPTIONS)))
+        SOURCES=noguisources.lst
 else
-	CFLAGS += -O2
+	SOURCES=sources.lst
 endif
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
-
-	touch configure-stamp
-
-
 build: build-stamp
 
-build-stamp: configure-stamp 
+build-stamp:
 	dh_testdir
 
 	# Add here commands to compile the package.
-	sh -c "CLASSPATH=src:lib/commons-net-1.3.0.jar:lib/jakarta-oro-2.0.8.jar jikes-classpath -deprecation -d build @sources.lst"
+	-mkdir build
+	sh -c "CLASSPATH=src:lib/commons-net-1.3.0.jar:lib/jakarta-oro-2.0.8.jar ${COMPILER} -deprecation -d build @${SOURCES}"
 	sh -c "cp ./resources/* ./build"
 	sh -c "jar cfvm ProjectX.jar MANIFEST.MF -C build ."