# ocaml.mk, but hopefully they will be removed at some point in the
# future
+-include $(CURDIR)/config/Makefile
+
OCAMLINIT_SED := \
-e 's%@OCamlABI@%$(OCAML_ABI)%g' \
-e 's%@OCamlStdlibDir@%$(OCAML_STDLIB_DIR)%g' \
endif
ocamlinit: ocamlinit-stamp
-ocamlinit-stamp:
+ocamlinit-stamp: config/Makefile
for t in $(OCAML_IN_FILES); do \
sed $(OCAMLINIT_SED) $$t.in > $$t; \
done
OCAML_NATDYNLINK := no
endif
-# dh_ocamlinit cannot be used for ocaml itself
-include debian/ocamlinit.mk
-
MD5SUMSDIR = /var/lib/ocaml/md5sums
INSTDIR = $(CURDIR)/debian/tmp/usr
DISTDIR = $(PACKAGE)-$(OCAML_ABI)
build:
dh $@
-ocamlinit-stamp: $(TARBALL_TARGET)
-
# Generate ocaml-native-compilers' Architecture field.
# Should never be called automatically.
.PHONY: debian/control
endif
.PHONY: override_dh_auto_configure
-override_dh_auto_configure: config-stamp
+override_dh_auto_configure: config-stamp ocamlinit-stamp
-config-stamp: pre-config-stamp ocamlinit-stamp
+config-stamp: pre-config-stamp
./configure $(CONFIGURE_OPTS)
sed -i $(CONFIGURE_SED) config/Makefile
touch $@
+ocamlinit-stamp: $(TARBALL_TARGET) config-stamp
+ $(MAKE) -f $(CURDIR)/debian/ocamlinit.mk ocamlinit-stamp
+
.PHONY: override_dh_auto_build
override_dh_auto_build: build-stamp
touch $@
.PHONY: override_dh_auto_clean
-override_dh_auto_clean: ocamlinit-clean
+override_dh_auto_clean:
ifneq ($(wildcard $(CURDIR)/config/Makefile),)
$(MAKE) clean
$(MAKE) -C emacs clean
endif
+ $(MAKE) -f $(CURDIR)/debian/ocamlinit.mk ocamlinit-clean
# Restore files altered by the build process
if test -d boot.debian; then \
rm -Rf boot; \