-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
29 lines (27 loc) · 1.28 KB
/
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
DESTDIR?=
PREFIX?=/usr/local/writedown
CONFDIR?=/etc/writedown
all:
@echo
@echo "Writedown is ready to run, copy this directory inside a project"
@echo "review config.zsh and run writedown/render. Refer to the README"
@echo "for more information. Run 'sudo make install' to have it installed."
@echo
install:
@install -d ${DESTDIR}${PREFIX}
@install -p -m 755 init ${DESTDIR}${PREFIX}/init
@install -p -m 755 render ${DESTDIR}${PREFIX}/render
@install -d ${DESTDIR}${PREFIX}/zuper
@install -p -m 644 zuper/zuper ${DESTDIR}${PREFIX}/zuper/zuper
@install -p -m 644 zuper/zuper.init ${DESTDIR}${PREFIX}/zuper/zuper.init
@install -d ${DESTDIR}${PREFIX}/zlibs
@install -p -m 644 zlibs/mkdocs ${DESTDIR}${PREFIX}/zlibs/mkdocs
@install -d ${DESTDIR}${CONFDIR}
@install -p -m 644 template.tex ${DESTDIR}${CONFDIR}/template.tex
@install -p -m 644 config.zsh ${DESTDIR}${CONFDIR}/config.zsh
@install -p -m 755 writedown ${DESTDIR}/usr/local/bin/writedown
@install -p -m 755 writedown ${DESTDIR}/usr/local/bin/writedown-pdf
@install -p -m 755 writedown ${DESTDIR}/usr/local/bin/writedown-docx
@install -p -m 755 writedown ${DESTDIR}/usr/local/bin/writedown-latex
@echo "Writedown correctly installed in ${DESTDIR}${PREFIX}"
@echo "Default configuration copied in ${DESTDIR}${CONFDIR}"