perl-module: Copy perl-module files if missing as well as if changed.
[pspp] / perl-module / automake.mk
index c442d04eb50615bf231a035580fbd56d4ae1104a..b689fd19ebdfeb2b36bc3f109166c2bd24bfb90c 100644 (file)
@@ -40,7 +40,8 @@ perl_module_tarball:
         for f in $(module_sources); do \
          destdir=`dirname $$f` ;\
          mkdir -p $$destdir ;\
-         if test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
+         if test ! -e "$(top_builddir)/$$f" || \
+            test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
                 cp $(top_srcdir)/$$f $$destdir ; \
                 echo cp $(top_srcdir)/$$f $$destdir ; \
          fi ; \