[Pkg-ocaml-maint-commits] r3275 - /trunk/packages/ocamlgraph/trunk/debian/rules

gildor at users.alioth.debian.org gildor at users.alioth.debian.org
Wed Oct 25 21:13:42 UTC 2006


Author: gildor
Date: Wed Oct 25 21:13:41 2006
New Revision: 3275

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=3275
Log:
* Improve ocamlinit,
* Correct license package name,
-- SLG

Modified:
    trunk/packages/ocamlgraph/trunk/debian/rules

Modified: trunk/packages/ocamlgraph/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlgraph/trunk/debian/rules?rev=3275&op=diff
==============================================================================
--- trunk/packages/ocamlgraph/trunk/debian/rules (original)
+++ trunk/packages/ocamlgraph/trunk/debian/rules Wed Oct 25 21:13:41 2006
@@ -1,5 +1,5 @@
 #!/usr/bin/make -f
-# debian/rules for headache package
+# debian/rules for ocamlgraph package
 # Copyright (C) 2006 Sylvain Le Gall <gildor at debian.org>
 #
 # This program is free software; you can redistribute it and/or
@@ -31,11 +31,22 @@
 OFILES := $(filter-out debian/control,$(patsubst %.in,%,$(wildcard debian/*.in)))
 
 ocamlinit:
+	echo -n > $(CURDIR)/ocamlinit-stamp; \
 	for f in $(OFILES); do \
 	  sed -e 's/@OCamlStdlibDir@/$(subst /,\/,$(OCAML_STDLIB_DIR))/g' \
 	  $$f.in > $$f; \
+	  echo $$f >> $(CURDIR)/ocamlinit-stamp; \
 	done
 
+clean::
+	if [ -e $(CURDIR)/ocamlinit-stamp ]; then \
+	  for f in `cat $(CURDIR)/ocamlinit-stamp`; do \
+	    if [ -e $$f.in ] && [ -e $$f ]; then \
+	      $(RM) $$f; \
+	    fi; \
+	  done; \
+	  $(RM) $(CURDIR)/ocamlinit-stamp; \
+	fi
 
 DEB_MAKE_CLEAN_TARGET    := distclean
 DEB_MAKE_BUILD_TARGET    := all doc




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