-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
32 lines (29 loc) · 838 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
@cp bin/zod-copy ${PREFIX}/bin
@cp bin/zod-internal ${PREFIX}/bin
@echo Installing awk lib files to ${AWKLIB}
@mkdir -p ${AWKLIB}
@cp lib/render.awk ${AWKLIB}
@cp lib/markdown.awk ${AWKLIB}
@cp lib/config.awk ${AWKLIB}
@cp lib/find_cmd.awk ${AWKLIB}
@echo Installation Complete
uninstall:
@echo Uninstalling zod executables
@rm ${PREFIX}/bin/zod
@rm ${PREFIX}/bin/zod-render
@rm ${PREFIX}/bin/zod-copy
@rm ${PREFIX}/bin/zod-internal
@echo Uninstalling awk lib files
@rm -rf ${AWKLIB}
@echo Uninstallation Complete