summaryrefslogtreecommitdiffstats
path: root/backgammon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'backgammon/Makefile')
-rw-r--r--backgammon/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/backgammon/Makefile b/backgammon/Makefile
index adf28243..50ed4ca4 100644
--- a/backgammon/Makefile
+++ b/backgammon/Makefile
@@ -1,6 +1,20 @@
# $NetBSD: Makefile,v 1.6 2001/01/09 03:13:39 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
-SUBDIR= common_source .WAIT backgammon teachgammon
+SUBDIR= backgammon teachgammon
+TOPTARGETS= all install
-.include <bsd.subdir.mk>
+$(TOPTARGETS): $(SUBDIR)
+
+clean:
+ $(MAKE) -C backgammon clean
+ $(MAKE) -C teachgammon clean
+ $(MAKE) -C common_source clean
+
+common_source:
+ $(MAKE) -C $@ $(MAKECMDGOALS)
+
+$(SUBDIR): common_source
+ $(MAKE) -C $@ $(MAKECMDGOALS)
+
+.PHONY: $(TOPTARGETS) $(SUBDIR) clean