changeset 3429:b9f5829ec843

[project @ 2000-01-14 03:18:47 by jwe]
author jwe
date Fri, 14 Jan 2000 03:18:47 +0000
parents 5b77cf82393c
children 65b3519ac3a1
files scripts/control/Makefile.in scripts/statistics/Makefile.in
diffstat 2 files changed, 21 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/control/Makefile.in
+++ b/scripts/control/Makefile.in
@@ -20,56 +20,41 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 
-SOURCES = *.m
+SUBDIRS = base hinf obsolete sys
 
-DISTFILES = Makefile.in $(SOURCES)
+DISTSUBDIRS = $(SUBDIRS)
 
-FCN_FILES = $(wildcard $(srcdir)/*.m)
-FCN_FILES_NO_DIR = $(notdir $(FCN_FILES))
+BINDISTSUBDIRS = $(SUBDIRS)
 
-BINDISTFILES = $(FCN_FILES)
+DISTFILES = Makefile.in
 
 all:
 .PHONY: all
 
-install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
-.PHONY: install install-strip
-
-uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
-.PHONY: uninstall
-
-clean:
-.PHONY: clean
+$(SUBDIRS):
+	echo making all in $@
+	$(MAKE) -C $@ all
+.PHONY: $(SUBDIRS)
 
-tags: $(SOURCES)
-	ctags $(SOURCES)
-
-TAGS: $(SOURCES)
-	etags $(SOURCES)
+install install-strip uninstall clean mostlyclean distclean maintainer-clean::
+	@$(subdir-for-command)
+.PHONY: install install-strip uninstall
+.PHONY: clean mostlyclean distclean maintainer-clean
 
-mostlyclean: clean
-.PHONY: mostlyclean
+tags TAGS:
+	$(SUBDIR_FOR_COMMAND)
 
-distclean: clean
+distclean::
 	rm -f Makefile
-.PHONY: distclean
 
-maintainer-clean: distclean
-	rm -f tags TAGS
-.PHONY: maintainer-clean
+maintainer-clean::
+	rm -f tags TAGS Makefile
 
 dist:
 	ln $(DISTFILES) ../../`cat ../../.fname`/scripts/control
+	for dir in $(DISTSUBDIRS); do mkdir ../../`cat ../../.fname`/scripts/control/$$dir; $(MAKE) -C $$dir $@; done
 .PHONY: dist
 
 bin-dist:
-	ln $(BINDISTFILES) ../../`cat ../../.fname`/scripts/control
+	for dir in $(BINDISTSUBDIRS); do mkdir ../../`cat ../../.fname`/scripts/control/$$dir; $(MAKE) -C $$dir $@; done
 .PHONY: bin-dist
--- a/scripts/statistics/Makefile.in
+++ b/scripts/statistics/Makefile.in
@@ -20,9 +20,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 
-SOURCES = # *.m
-
-DISTFILES = Makefile.in $(SOURCES)
+DISTFILES = Makefile.in
 
 SUBDIRS = base distributions models tests
 
@@ -30,9 +28,6 @@
 
 BINDISTSUBDIRS = $(SUBDIRS)
 
-FCN_FILES = # $(wildcard $(srcdir)/*.m)
-FCN_FILES_NO_DIR = # $(notdir $(FCN_FILES))
-
 all: $(SUBDIRS)
 .PHONY: all
 
@@ -46,19 +41,9 @@
 .PHONY: install install-strip uninstall
 .PHONY: clean mostlyclean distclean maintainer-clean
 
-install install-strip::
-
-uninstall::
-
-tags TAGS:: $(SOURCES)
+tags TAGS:
 	$(SUBDIR_FOR_COMMAND)
 
-tags::
-	ctags $(SOURCES)
-
-TAGS:: $(SOURCES)
-	etags $(SOURCES)
-
 distclean::
 	rm -f Makefile