diff options
Diffstat (limited to 'ching')
-rw-r--r-- | ching/Makefile | 8 | ||||
-rw-r--r-- | ching/Makefile.inc | 5 | ||||
-rw-r--r-- | ching/castching/Makefile | 16 | ||||
-rw-r--r-- | ching/ching/Makefile | 14 | ||||
-rw-r--r-- | ching/printching/Makefile | 17 |
5 files changed, 44 insertions, 16 deletions
diff --git a/ching/Makefile b/ching/Makefile index ab7834fb..68f38c00 100644 --- a/ching/Makefile +++ b/ching/Makefile @@ -1,5 +1,11 @@ # $NetBSD: Makefile,v 1.1 2005/06/30 13:30:33 perry Exp $ SUBDIR= ching castching printching +TOPTARGETS= all clean install -.include <bsd.subdir.mk> +$(TOPTARGETS): $(SUBDIR) + +$(SUBDIR): + $(MAKE) -C $@ $(MAKECMDGOALS) + +.PHONY: $(TOPTARGETS) $(SUBDIR) diff --git a/ching/Makefile.inc b/ching/Makefile.inc deleted file mode 100644 index b4674a6e..00000000 --- a/ching/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.3 2013/08/11 03:27:02 dholland Exp $ - -CPPFLAGS+=-I${.CURDIR}/../include -BINDIR?=/usr/games -WARNS?=5 diff --git a/ching/castching/Makefile b/ching/castching/Makefile index dd84fc9e..905a9e32 100644 --- a/ching/castching/Makefile +++ b/ching/castching/Makefile @@ -1,7 +1,19 @@ # $NetBSD: Makefile,v 1.1 2005/06/30 13:30:33 perry Exp $ PROG= castching -NOMAN= # defined +SRCS= castching.c BINDIR= /usr/libexec/ching -.include <bsd.prog.mk> +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I../include + $(STRIP) $(PROG) + +install: $(PROG) + $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/libexec/ching/$(PROG) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install diff --git a/ching/ching/Makefile b/ching/ching/Makefile index 85559c1e..cd5d7eff 100644 --- a/ching/ching/Makefile +++ b/ching/ching/Makefile @@ -3,11 +3,15 @@ SCRIPTS=ching.sh MAN= ching.6 -.include <bsd.own.mk> - -.if ${MKSHARE} != "no" FILES= hexagrams macros FILESDIR=/usr/share/games/ching -.endif -.include <bsd.prog.mk> +all: + +install: $(PROG) $(MAN) $(SCRIPTS) + $(GINSTALL) -Dm755 $(SCRIPTS) $(DESTDIR)/usr/games/$(basename $(SCRIPTS)) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN) + $(GINSTALL) -d $(DESTDIR)$(FILESDIR) + $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)$(FILESDIR) + +.PHONY: all install clean diff --git a/ching/printching/Makefile b/ching/printching/Makefile index 8ccb39bb..4adbc181 100644 --- a/ching/printching/Makefile +++ b/ching/printching/Makefile @@ -1,7 +1,18 @@ # $NetBSD: Makefile,v 1.1 2005/06/30 13:30:33 perry Exp $ PROG= printching -NOMAN= # defined -BINDIR= /usr/libexec/ching +SRCS= printching.c -.include <bsd.prog.mk> +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I../include + $(STRIP) $(PROG) + +install: $(PROG) + $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/libexec/ching/$(PROG) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install |