From 6aff50c566ff4f4a6f23fe0e0892ddaf477e5565 Mon Sep 17 00:00:00 2001 From: nuex Date: Wed, 5 Oct 2011 17:11:08 -0400 Subject: [PATCH] add uninstall make task, compile template in all task --- Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2baf8fd..e010abc 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,23 @@ include config.mk -install: +all: + @echo Compiling zod executable + @sed "s#ZODLIB_PATH#${AWKLIB}#g" < bin/zod.template > bin/zod + @echo Compiled + +install: all @echo Installing zod executable to ${PREFIX}/bin @mkdir -p ${PREFIX}/bin - @sed "s#ZODLIB_PATH#${AWKLIB}#g" < bin/zod.template > ${PREFIX}/bin/zod @chmod 755 ${PREFIX}/bin/zod @echo Installing awk lib files to ${AWKLIB} @mkdir -p ${AWKLIB} @cp lib/render.awk ${AWKLIB}/ @cp lib/markdown.awk ${AWKLIB}/ @echo Installation Complete + +uninstall: + @echo Uninstalling zod executable + @rm ${PREFIX}/bin/zod + @echo Uninstalling awk lib files + @rm -rf ${AWKLIB} + @echo Uninstallation Complete