about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
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