Patching upstream sources
-------------------------
-This source package uses quilt to apply and remove its patches. Please
-refer to `/usr/share/doc/quilt/README.source' for information about
-how to use quilt for source packages.
-
The quilt series is generated from the Git repository. Have a look at
-the `redo-patches' target of debian/rules for more details.
+dom-apply-patches(1) and dom-save-patches(1) from dh-ocaml package for
+more details.
+
+ -- Stéphane Glondu <glondu@debian.org>, Sun, 18 Apr 2010 15:20:53 +0200
#!/usr/bin/make -f
-include /usr/share/quilt/quilt.make
PACKAGE := ocaml
ALL_PACKAGES := $(shell sed -ne 's/^Package: //p' debian/control)
-e "s%STUBLIBDIR=.*$$%STUBLIBDIR=\$$(PREFIX)/lib/ocaml/stublibs%g"
-$(QUILT_STAMPFN): debian/$(SRCTARBALL)
ocamlinit-stamp: debian/$(SRCTARBALL)
# Generate ocaml-native-compilers' Architecture field.
$(DISTDIR)/
rm -f $(DISTDIR)
-config-stamp: pre-config-stamp $(QUILT_STAMPFN) ocamlinit-stamp
+config-stamp: pre-config-stamp ocamlinit-stamp
dh build --before dh_auto_configure
./configure $(CONFIGURE_OPTS)
sed -i $(CONFIGURE_SED) config/Makefile
fi
touch $@
-$(QUILT_STAMPFN): ocamlinit-stamp
-
build: build-stamp
build-stamp: config-stamp
if test ! -d boot.debian; then \
dh build --after dh_auto_test
touch $@
-clean: unpatch ocamlinit-clean
+clean: ocamlinit-clean
dh clean --before dh_auto_clean
ifneq ($(wildcard $(CURDIR)/config/Makefile),)
$(MAKE) clean
binary-indep: binary-stamp
.PHONY: build clean binary-indep binary-arch binary install build ocamlinit
-
-.PHONY: redo-patches
-redo-patches:
- rm -f debian/patches/*
- git format-patch -N -o debian/patches upstream...patch-queue | \
- sed -e 's%debian/patches/%%' > debian/patches/series
- sed -i -e 1d debian/patches/*.patch