From 620571651532821ca386521d7b4a3c0739fff463 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 27 Aug 2020 16:26:40 -0400 Subject: Remove rc script The rc script kinda just sucks for running this, and catsit exists now. Probably no one but me was ever using it anyway. --- Makefile | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e85d6c2..fd56245 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,13 @@ LDLIBS = -lsqlite3 -ltls BINS = litterbox scoop unscoop MANS = ${BINS:=.1} -RCS = rc.d/litterbox -include config.mk OBJS.litterbox = litterbox.o config.o xdg.o OBJS.scoop = scoop.o xdg.o OBJS.unscoop = unscoop.o xdg.o +OBJS = ${OBJS.litterbox} ${OBJS.scoop} ${OBJS.unscoop} FORMATS = generic catgirl irc textual @@ -30,7 +30,7 @@ unscoop: ${OBJS.unscoop} .o: ${CC} ${LDFLAGS} ${OBJS.$@} ${LDLIBS} -o $@ -${BINS:=.o}: database.h +${OBJS}: database.h test: .test @@ -38,27 +38,17 @@ test: .test set -e; for format in ${FORMATS}; do ./unscoop -n -f $$format; done touch .test -.SUFFIXES: .in - -.in: - sed -e 's|%%PREFIX%%|${PREFIX}|g' $< > $@ - -tags: *.c *.h - ctags -w *.c *.h +tags: *.[ch] + ctags -w *.[ch] clean: - rm -f .test tags ${BINS} ${RCS} ${BINS:=.o} config.o xdg.o + rm -f ${BINS} ${OBJS} .test tags -install: ${BINS} ${MANS} ${INSTALLS} +install: ${BINS} ${MANS} install -d ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANDIR}/man1 install ${BINS} ${DESTDIR}${PREFIX}/bin install -m 644 ${MANS} ${DESTDIR}${MANDIR}/man1 -install-rcs: ${RCS} - install -d ${DESTDIR}${ETCDIR}/rc.d - install ${RCS} ${DESTDIR}${ETCDIR}/rc.d - uninstall: rm -f ${BINS:%=${DESTDIR}${PREFIX}/bin/%} rm -f ${MANS:%=${DESTDIR}${MANDIR}/man1/%} - rm -f ${RCS:%=${DESTDIR}${ETCDIR}/%} -- cgit 1.4.1