diff scripts/Makefile.in @ 3319:a4f11eae45c4

[project @ 1999-10-22 02:03:08 by jwe]
author jwe
date Fri, 22 Oct 1999 02:03:08 +0000
parents f1c5658772cf
children 3cfec93fd0ef
line wrap: on
line diff
--- a/scripts/Makefile.in
+++ b/scripts/Makefile.in
@@ -22,6 +22,9 @@
 
 SOURCES = # *.m
 
+ALL_M_FILES1 := $(shell find $(srcdir) -name '*.m' -print)
+ALL_M_FILES := $(patsubst $(srcdir)/%, %, $(ALL_M_FILES1))
+
 DISTFILES = Makefile.in ChangeLog $(SOURCES) configure.in \
 	configure mkinstalldirs move-if-change mkdoc gethelp.cc
 
@@ -44,10 +47,10 @@
 	$(MAKE) -C $@ all
 .PHONY: $(SUBDIRS)
 
-DOCSTRINGS: gethelp mkdoc
+DOCSTRINGS: gethelp mkdoc $(ALL_M_FILES)
+	echo $(ALL_M_FILES)
 	$(srcdir)/mkdoc $(srcdir) > $@.t
-	@$(top_srcdir)/move-if-change $@.t $@
-.PHONY: DOCSTRINGS
+	mv $@.t $@
 
 install install-strip uninstall clean mostlyclean distclean maintainer-clean::
 	@$(subdir-for-command)