[Pkg-ocaml-maint-commits] [SCM] coq packaging branch, master, updated. debian/8.2.rc2+dfsg-3-15-g9603746
Stephane Glondu
steph at glondu.net
Fri Feb 20 14:24:35 UTC 2009
The following commit has been merged in the master branch:
commit 72851683d176c05e44c56fea593c73e4691d3450
Author: Stephane Glondu <steph at glondu.net>
Date: Fri Feb 20 13:17:59 2009 +0100
Use ocamlinit.mk
diff --git a/debian/rules b/debian/rules
index 8b587ea..6d55d2c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ export VERBOSE=1
# We want to use dpatch
include /usr/share/dpatch/dpatch.make
-include /usr/share/ocaml/ocamlvars.mk
+include /usr/share/ocaml/ocamlinit.mk
HTMLDOC := doc/stdlib/html/index.html
@@ -25,8 +25,6 @@ ADDPREF := COQINSTALLPREFIX=$(COQPREF)
PACKAGES := $(shell awk '/Package:/{print $$2}' debian/control)
-OFILES := $(patsubst %.in,%,$(wildcard debian/*.in))
-
COQ_VERSION := $(shell head -n1 debian/changelog | awk -F'[+() ]' '{print $$3}')
COQ_ABI := $(COQ_VERSION)+$(OCAML_ABI)
@@ -35,20 +33,6 @@ CONFIGUREOPTS := --arch Linux --prefix /usr --mandir /usr/share/man \
--browser "/usr/bin/x-www-browser %s &" \
--with-doc no --coqrunbyteflags "-dllib -lcoqrun"
-OCAMLINITSED := -e 's%@OCamlDllDir@%$(OCAML_DLL_DIR)%g' -e '/^\#/d'
-
-ifneq ($(OCAML_OPT_ARCH),)
- # CONFIGUREOPTS += -opt
- OCAMLINITSED += -e 's/^OPT: //'
-else
- OCAMLINITSED += -e '/^OPT: /d'
-endif
-
-ocamlinit: ocamlinit-stamp
-ocamlinit-stamp:
- for f in $(OFILES); do sed $(OCAMLINITSED) $$f.in > $$f; done
- touch $@
-
configure: configure-stamp
configure-stamp: patch-stamp ocamlinit-stamp
dh build --before dh_auto_configure
@@ -90,9 +74,8 @@ install-stamp: build-stamp
done
touch $@
-clean: unpatch
+clean: unpatch ocamlinit-clean
dh $@
- rm -f $(OFILES)
binary-indep: install-stamp
dh $@
--
coq packaging
More information about the Pkg-ocaml-maint-commits
mailing list