diff options
author | June McEnroe <june@causal.agency> | 2020-05-18 15:09:53 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-18 15:09:53 -0400 |
commit | 9fec39ad5150620414a9fed92617703e1002f906 (patch) | |
tree | 9ff790ff6252da54351f836b1271527f03059882 /Makefile | |
parent | Update email addresses (diff) | |
download | pounce-9fec39ad5150620414a9fed92617703e1002f906.tar.gz pounce-9fec39ad5150620414a9fed92617703e1002f906.zip |
Template rc scripts with %%PREFIX%%
The way that the ports tree does it.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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 |