Issue #14 I still want, at some point, to add to other formats but this is fine for now. The tool uses pandoc to do the conversion from md to html A sample template (without any styling) is provided. This can be overwritten in $HOME/.config/kb/templates/main.html or in the knowledgebase directory under `templates`.
19 lines
371 B
Makefile
19 lines
371 B
Makefile
# kb
|
|
.POSIX:
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
#MANPREFIX = $(PREFIX)/share/man
|
|
|
|
install:
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
sed '/^source/d' inc/* kb > $(DESTDIR)$(PREFIX)/bin/kb
|
|
chmod +x $(DESTDIR)$(PREFIX)/bin/kb
|
|
mkdir -p $(DESTDIR)$(PREFIX)/share/kb
|
|
cp -r templates $(DESTDIR)$(PREFIX)/share/kb
|
|
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/kb
|
|
|
|
.PHONY: install uninstall
|