sed -e 's/#OcamlNativeArchs#/$(NATIVE_ARCHS)/g' debian/control.in > $@
pre-config: debian/$(SRCTARBALL)
+ for ext in sub guess; do \
+ if [ -f /usr/share/misc/config.$$ext ] && ! [ -f debian/config.orig.$$ext ] ; then \
+ mv config/gnu/config.$$ext debian/config.orig.$$ext; \
+ cp -f /usr/share/misc/config.$$ext config/gnu/config.$$ext; \
+ fi; \
+ done
touch $@
+
debian/$(SRCTARBALL):
ln -fs . $(DISTDIR) # beware of the symlink recursion!
tar --anchored -chjf $@ \
$(MAKE) -C debian/ocaml-md5sums clean
$(MAKE) -C debian/dh-ocaml clean
$(MAKE) -C debian/policy clean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
- -cp -f /usr/share/misc/config.sub config/gnu/config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
- -cp -f /usr/share/misc/config.guess config/gnu/config.guess
-endif
+ for ext in sub guess; do \
+ if [ -f debian/config.orig.$$ext ] ; then \
+ mv -f debian/config.orig.$$ext config/gnu/config.$$ext; \
+ fi; \
+ done
# File not cleaned by upstream
-$(RM) _boot_log1
-$(RM) _boot_log2