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-10-24 05:15:46 +02:00
|
|
|
@echo Installing zod executables to ${PREFIX}/bin
|
2011-09-22 17:28:24 +02:00
|
|
|
@mkdir -p ${PREFIX}/bin
|
2011-10-06 19:05:57 +02:00
|
|
|
@cp bin/zod ${PREFIX}/bin
|
2011-10-24 05:15:46 +02:00
|
|
|
@cp bin/zod-render ${PREFIX}/bin
|
|
|
|
@cp bin/zod-copy ${PREFIX}/bin
|
|
|
|
@cp bin/zod-internal ${PREFIX}/bin
|
2011-09-22 17:28:24 +02:00
|
|
|
@echo Installing awk lib files to ${AWKLIB}
|
|
|
|
@mkdir -p ${AWKLIB}
|
2011-10-06 19:05:57 +02:00
|
|
|
@cp lib/render.awk ${AWKLIB}
|
|
|
|
@cp lib/markdown.awk ${AWKLIB}
|
2011-10-20 20:29:30 +02:00
|
|
|
@cp lib/config.awk ${AWKLIB}
|
2011-10-24 05:15:46 +02:00
|
|
|
@cp lib/find_cmd.awk ${AWKLIB}
|
2011-09-22 17:28:24 +02:00
|
|
|
@echo Installation Complete
|
2011-10-05 23:11:08 +02:00
|
|
|
|
|
|
|
uninstall:
|
2011-11-10 14:04:44 +01:00
|
|
|
@echo Uninstalling zod executables
|
2011-10-05 23:11:08 +02:00
|
|
|
@rm ${PREFIX}/bin/zod
|
2011-11-10 14:04:44 +01:00
|
|
|
@rm ${PREFIX}/bin/zod-render
|
|
|
|
@rm ${PREFIX}/bin/zod-copy
|
|
|
|
@rm ${PREFIX}/bin/zod-internal
|
2011-10-05 23:11:08 +02:00
|
|
|
@echo Uninstalling awk lib files
|
|
|
|
@rm -rf ${AWKLIB}
|
|
|
|
@echo Uninstallation Complete
|