[Pkg-ocaml-maint-commits] [SCM] ocsigen packaging branch, master, updated. debian/1.2.2-1-12-gdb7bd7a

Stephane Glondu steph at glondu.net
Sat Mar 6 16:40:40 UTC 2010


The following commit has been merged in the master branch:
commit 6b1e0f433677e92f5ef20dcda0041743817a1751
Author: Stephane Glondu <steph at glondu.net>
Date:   Sat Mar 6 17:12:30 2010 +0100

    Compile the doc only when libocsigen-ocaml-doc is being built

diff --git a/debian/rules b/debian/rules
index ffa650c..f39b856 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,8 @@ else
   OPT_CONFFLAGS := --disable-nativecode
 endif
 
+INSTALL_TARGET := $(if $(findstring libocsigen-ocaml-doc,$(shell dh_listpackages)),install,installnodoc)
+
 %:
 	dh --with ocaml $@
 
@@ -46,7 +48,7 @@ override_dh_auto_configure:
 
 .PHONY: override_dh_auto_install
 override_dh_auto_install:
-	$(MAKE) install MODULEINSTALLDIR=$(shell ocamlc -where) CHOWN=true
+	$(MAKE) $(INSTALL_TARGET) MODULEINSTALLDIR=$(shell ocamlc -where) CHOWN=true
 
 # For each installed .cmi file, install the corresponding .mli file next to it
 	find $(DESTDIR) -name '*.cmi' -printf '%h %f\n' | \

-- 
ocsigen packaging



More information about the Pkg-ocaml-maint-commits mailing list