summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-20 10:33:09 -0400
committerJune McEnroe <june@causal.agency>2020-04-20 10:34:56 -0400
commitd308c5ccb117f7fd6cb7e6f8ac651b0b99a99817 (patch)
treeaf398fab188976ed2e01daddac13a6559fe5efcc /Makefile
parentError on invalid ISUPPORT values (diff)
downloadlitterbox-d308c5ccb117f7fd6cb7e6f8ac651b0b99a99817.tar.gz
litterbox-d308c5ccb117f7fd6cb7e6f8ac651b0b99a99817.zip
Use . as ${LDLIBS.$@} separator
Diffstat (limited to '')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c2aacd3..96bd125 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ ETCDIR = ${PREFIX}/etc
 
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
 LDLIBS = -lsqlite3
-LDLIBS_litterbox = -ltls
+LDLIBS.litterbox = -ltls
 
 BINS = litterbox scoop unscoop
 MANS = ${BINS:=.1}
@@ -13,17 +13,17 @@ RCS  =
 -include config.mk
 
 FORMATS = generic catgirl irc textual
-OBJS_litterbox = litterbox.o config.o
+OBJS.litterbox = litterbox.o config.o
 
 dev: tags all test
 
 all: ${BINS}
 
-litterbox: ${OBJS_litterbox}
-	${CC} ${LDFLAGS} ${OBJS_$@} ${LDLIBS} ${LDLIBS_$@} -o $@
+litterbox: ${OBJS.litterbox}
+	${CC} ${LDFLAGS} ${OBJS.$@} ${LDLIBS} ${LDLIBS.$@} -o $@
 
 .o:
-	${CC} ${LDFLAGS} $< ${LDLIBS} ${LDLIBS_$@} -o $@
+	${CC} ${LDFLAGS} $< ${LDLIBS} ${LDLIBS.$@} -o $@
 
 ${BINS:=.o}: database.h
 
@@ -37,7 +37,7 @@ tags: *.c *.h
 	ctags -w *.c *.h
 
 clean:
-	rm -f .test tags ${BINS} ${OBJS_litterbox} ${BINS:=.o}
+	rm -f .test tags ${BINS} ${OBJS.litterbox} ${BINS:=.o}
 
 install: ${BINS} ${MANS}
 	install -d ${PREFIX}/bin ${MANDIR}/man1
ml.c?id=4bd6bb0f36f1e234a6aa8f1cd3d2660c9888b838&follow=1'>Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe