knowledge-base/Makefile
Jonathan Hodgson 7d554d5326 Adds the ability to convert to html
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`.
2020-12-31 09:46:23 +00:00

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