2011-09-22 17:28:24 +02:00
|
|
|
include config.mk
|
|
|
|
|
2011-10-05 23:11:08 +02:00
|
|
|
all:
|
|
|
|
@echo Compiling zod executable
|
|
|
|
@sed "s#ZODLIB_PATH#${AWKLIB}#g" < bin/zod.template > bin/zod
|
2011-10-06 18:35:54 +02:00
|
|
|
@chmod 755 bin/zod
|
2011-10-05 23:11:08 +02:00
|
|
|
@echo Compiled
|
|
|
|
|
|
|
|
install: all
|
2011-09-22 17:28:24 +02:00
|
|
|
@echo Installing zod executable to ${PREFIX}/bin
|
|
|
|
@mkdir -p ${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
|
2011-10-05 23:11:08 +02:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@echo Uninstalling zod executable
|
|
|
|
@rm ${PREFIX}/bin/zod
|
|
|
|
@echo Uninstalling awk lib files
|
|
|
|
@rm -rf ${AWKLIB}
|
|
|
|
@echo Uninstallation Complete
|