add uninstall make task, compile template in all task
This commit is contained in:
parent
d476e9a4d3
commit
6aff50c566
15
Makefile
15
Makefile
@ -1,12 +1,23 @@
|
|||||||
include config.mk
|
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
|
@echo Installing zod executable to ${PREFIX}/bin
|
||||||
@mkdir -p ${PREFIX}/bin
|
@mkdir -p ${PREFIX}/bin
|
||||||
@sed "s#ZODLIB_PATH#${AWKLIB}#g" < bin/zod.template > ${PREFIX}/bin/zod
|
|
||||||
@chmod 755 ${PREFIX}/bin/zod
|
@chmod 755 ${PREFIX}/bin/zod
|
||||||
@echo Installing awk lib files to ${AWKLIB}
|
@echo Installing awk lib files to ${AWKLIB}
|
||||||
@mkdir -p ${AWKLIB}
|
@mkdir -p ${AWKLIB}
|
||||||
@cp lib/render.awk ${AWKLIB}/
|
@cp lib/render.awk ${AWKLIB}/
|
||||||
@cp lib/markdown.awk ${AWKLIB}/
|
@cp lib/markdown.awk ${AWKLIB}/
|
||||||
@echo Installation Complete
|
@echo Installation Complete
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@echo Uninstalling zod executable
|
||||||
|
@rm ${PREFIX}/bin/zod
|
||||||
|
@echo Uninstalling awk lib files
|
||||||
|
@rm -rf ${AWKLIB}
|
||||||
|
@echo Uninstallation Complete
|
||||||
|
Loading…
Reference in New Issue
Block a user