diff options
author | June McEnroe <june@causal.agency> | 2020-01-04 18:41:20 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-01-04 18:41:20 -0500 |
commit | fd28b85e9709b57eef9d1062300aacf2a3b78dab (patch) | |
tree | 6765147f4d8c760b9251c46145527bdd61d89347 /Makefile | |
parent | Add -m regexp option to scoop (diff) | |
download | litterbox-fd28b85e9709b57eef9d1062300aacf2a3b78dab.tar.gz litterbox-fd28b85e9709b57eef9d1062300aacf2a3b78dab.zip |
Import getopt_config from pounce
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile index eae91ce..309dd8f 100644 --- a/Makefile +++ b/Makefile @@ -13,20 +13,25 @@ MANS = ${BINS:=.1} -include config.mk +OBJS_litterbox = litterbox.o config.o + dev: tags all all: ${BINS} -${BINS:=.o}: database.h +litterbox: ${OBJS_litterbox} + ${CC} ${LDFLAGS} ${OBJS_$@} ${LDLIBS} ${LDLIBS_$@} -o $@ .o: ${CC} ${LDFLAGS} $< ${LDLIBS} ${LDLIBS_$@} -o $@ +${BINS:=.o}: database.h + tags: *.c *.h ctags -w *.c *.h clean: - rm -f tags ${BINS} ${BINS:=.o} + rm -f tags ${BINS} ${OBJS_litterbox} ${BINS:=.o} install: ${BINS} ${MANS} install -d ${PREFIX}/bin ${MANDIR}/man1 |