[Pkg-ocaml-maint-commits] r1352 - trunk/packages/syslog-ocaml/debian
Eric Cooper
ecc-guest@costa.debian.org
Sat, 07 May 2005 14:53:46 +0000
Author: ecc-guest
Date: 2005-05-07 14:53:45 +0000 (Sat, 07 May 2005)
New Revision: 1352
Modified:
trunk/packages/syslog-ocaml/debian/rules
Log:
handle architectures with no ocamlopt
Modified: trunk/packages/syslog-ocaml/debian/rules
===================================================================
--- trunk/packages/syslog-ocaml/debian/rules 2005-05-07 14:42:17 UTC (rev 1351)
+++ trunk/packages/syslog-ocaml/debian/rules 2005-05-07 14:53:45 UTC (rev 1352)
@@ -1,27 +1,20 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# This file is public domain software, originally written by Joey Hess.
-include /usr/share/dpatch/dpatch.make
-
-# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+include /usr/share/dpatch/dpatch.make
+
build: build-stamp
build-stamp: patch-stamp
dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE) reallyall
-
+ $(MAKE) all
+ if [ -x /usr/bin/ocamlopt ]; then $(MAKE) opt; else true; fi
touch build-stamp
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp patch-stamp
-
- # Add here commands to clean up after the build process.
-$(MAKE) clean
dh_clean
@@ -33,15 +26,11 @@
dh_testroot
dh_clean -k
dh_installdirs
-
mkdir -p $(DESTDIR)
$(MAKE) DESTDIR=$(DESTDIR) install
-# Build architecture-independent files here.
binary-indep: build install
-# We have nothing to do by default.
-# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot