zodiac/Makefile

27 lines
647 B
Makefile

include config.mk
all:
@echo Compiling zod executable
@sed "s#ZODLIB_PATH#${AWKLIB}#g" < bin/zod.template > bin/zod
@chmod 755 bin/zod
@echo Compiled
install: all
@echo Installing zod executables to ${PREFIX}/bin
@mkdir -p ${PREFIX}/bin
@cp bin/zod ${PREFIX}/bin
@cp bin/zod_render ${PREFIX}/bin
@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
@rm ${PREFIX}/bin/zod_render
@echo Uninstalling awk lib files
@rm -rf ${AWKLIB}
@echo Uninstallation Complete