commit 8235c6be38853162246ec02de2e5dd89c7b1c514
parent 3e8eb99a9c559c3c8ec31d12dade25bd43074017
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Tue, 20 Jul 2021 19:58:26 -0700
Cleanup program mkfiles
Diffstat:
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/apc/mkfile b/apc/mkfile
@@ -2,7 +2,6 @@
name = apc
src = apc.c die.c
-hdr = config.h die.h
obj = ${src:%.c=%.o}
lib = ap
mk = ../mk
@@ -13,9 +12,12 @@ ldlibs = ${lib:%=-l%}
all:V: $name
+apc.h:VQ:
+ #
+
dir: ${lib:%=../lib/%}
-$obj: mkfile $hdr
+$obj: mkfile config.h ${objsrc:%.o=%.h}
$name: dir
diff --git a/aps/mkfile b/aps/mkfile
@@ -1,9 +1,9 @@
# Copyright 2021 Jacob R. Edwards
name = aps
-src = aps.c arg.c asplit.c buf.c bug.c command.c find.c item.c log.c main.c match.c player.c queue.c response.c split.c
+src = aps.c arg.c asplit.c buf.c bug.c command.c find.c item.c log.c\
+ main.c match.c player.c queue.c response.c split.c
obj = ${src:%.c=%.o}
-hdr = aps.h arg.h asplit.h buf.h bug.h command.h config.h find.h item.h log.h match.h player.h queue.h response.h split.h util.h
lib = ap
mk = ../mk
@@ -13,9 +13,12 @@ ldlibs = ${lib:%=-l%}
all:V: $name
+main.h:VQ:
+ #
+
dir: ${lib:%=../lib/%}
-$obj: mkfile $hdr
+$obj: mkfile config.h util.h ${src:%.c=%.h}
$name: dir