aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2018-04-06 19:28:45 +0200
committerDuncaen <mail@duncano.de>2018-04-06 19:28:45 +0200
commit27936e895fb9d68a87f3f5fd1786c241dbe9975d (patch)
tree75d45454be252d75b0a73c92bcc66fbeec8d8e5b
parent7bb62b29d181bb8f80aec6ff0f85ebad98f3feba (diff)
downloadlobase-27936e895fb9d68a87f3f5fd1786c241dbe9975d.tar.gz
mk: add default man page for bsd.prog.mk
-rw-r--r--mk/bsd.prog.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/mk/bsd.prog.mk b/mk/bsd.prog.mk
index 83fc504..be27c7f 100644
--- a/mk/bsd.prog.mk
+++ b/mk/bsd.prog.mk
@@ -28,6 +28,11 @@ endif
CFLAGS+= ${COPTS}
CXXFLAGS+= ${CXXOPTS}
+ifdef PROG
+SRCS ?= ${PROG}.c
+MAN ?= ${PROG}.1
+endif
+
CFILES = $(filter %.c,$(SRCS))
YFILES = $(filter %.y,$(SRCS))
LFILES = $(filter %.l,$(SRCS))