diff DEFS.mk @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DEFS.mk	Sat Dec 22 17:52:45 2007 -0500
@@ -0,0 +1,49 @@
+DIRS.maintainer=lint oldclasslib examples
+DIRS.nonmaintainer=
+
+DIRS.hasptests=ptests
+DIRS.noptests=
+
+SUBDIRS=cgbigen helpgen help2html checksum insertsums anagram doc \
+	$(DIRS.$(MAINTAINER))
+MORESUBDIRS=lint oldclasslib examples tests $(DIRS.$(HASPTESTS))
+
+# leave config.status in case the user wants it
+MYDISTCLEANFILES=Makefile rules.mk depend.mk config.mk
+
+include $(TOP)/mk/subdir.mk
+include $(TOP)/mk/installdirs.mk
+
+test:
+	@echo "run-tests ===> tests"
+	@cd tests && $(MAKE) run-tests _SUBDIR_=tests/
+	@if [ $(HASPTESTS) = hasptests ]; then \
+	    echo "run-tests ===> ptests"; \
+	    cd ptests && $(MAKE) run-tests _SUBDIR_=ptests/; \
+	 fi
+	@echo "show-diffs ===> ..."
+	@cd tests && $(MAKE) show-diffs _SUBDIR_=tests/
+	@if [ $(HASPTESTS) = hasptests ]; then \
+	    cd ptests && $(MAKE) show-diffs _SUBDIR_=ptests/; \
+	 fi
+
+clean distclean: cleantest
+cleantest:
+	@echo "clean ===> tests"
+	@cd tests && $(MAKE) clean _SUBDIR_=tests/
+	@if [ $(HASPTESTS) = hasptests ]; then \
+	    echo "clean ===> ptests"; \
+	    cd ptests && $(MAKE) clean _SUBDIR_=ptests/; \
+	 fi
+
+install:
+	@echo "install ===> anagram/run"
+	@cd anagram/run && $(MAKE) install _SUBDIR_=anagram/run/
+	@echo "install ===> doc"
+	@cd doc && $(MAKE) install _SUBDIR_=doc/
+	@echo "install ===> oldclasslib"
+	@cd oldclasslib && $(MAKE) install _SUBDIR_=oldclasslib/
+	@echo "install ===> examples"
+	@cd examples && $(MAKE) install _SUBDIR_=examples/
+
+.PHONY: test cleantest clean distclean install