From 9fec39ad5150620414a9fed92617703e1002f906 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 18 May 2020 15:09:53 -0400 Subject: Template rc scripts with %%PREFIX%% The way that the ports tree does it. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 23053ff..e6e5849 100644 --- a/Makefile +++ b/Makefile @@ -34,11 +34,16 @@ ${OBJS}: bounce.h compat.h dispatch.o: compat.h +.SUFFIXES: .in + +.in: + sed -e 's|%%PREFIX%%|${PREFIX}|g' $< > $@ + tags: *.c *.h ctags -w *.c *.h clean: - rm -f tags ${BINS} ${OBJS} dispatch.o + rm -f tags ${BINS} ${RCS} ${OBJS} dispatch.o install: ${BINS} ${MANS} ${RCS} install -d ${PREFIX}/bin ${MANDIR}/man1 -- cgit 1.4.1