Browse Source

corrections to build system

* targets.mk: Only the first dependecy was used, remove them entirely
  and replace with explicit foreach.  Change "check" to only depend on
  "compile", so it does not re-make documentation.
Achim Gratz 13 years ago
parent
commit
160cde6c0e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      targets.mk

+ 5 - 5
targets.mk

@@ -48,14 +48,14 @@ local.mk:
 		-e '$$ i ## See default.mk for further configuration options.' \
 		default.mk > $@
 
-all compile::	doc lisp
-	$(MAKE) -C $< clean
-compile compile-dirty::	lisp
-	$(MAKE) -C $< $@
+all compile::
+	$(foreach dir, doc lisp, $(MAKE) -C $(dir) clean;)
+compile compile-dirty::
+	$(MAKE) -C lisp $@
 all clean-install::
 	$(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) $@;)
 
-check test::	all
+check test::	compile
 check test test-dirty::
 	-$(MKDIR) $(testdir)
 	TMPDIR=$(testdir) $(BTEST)