LSP = $(filter-out $(MAIN),$(wildcard *.lsp))
BIN = hourglass hourglass-web hourglass-site
DOCS = hourglass-guide.html hourglass-guide.pdf
-MANPGS = hourglass.8
+MANPGS = hourglass.8 hourglass-site.8 hourglass-web.8
IMGS = $(wildcard *.png)
OTHER = setup.sh hourglass.conf
VERSION = 0.1
mv sitetool/sitetool $@
%.html: %.adoc
- asciidoctor $< > $@
+ asciidoctor -a 'webfonts!' $< > $@
%.pdf: %.adoc | $(IMGS)
asciidoctor-pdf $< > $@
dist: hourglass-$(VERSION).tgz
########################################################
-BINDIR = $(DESTDIR)/usr/local/bin
-MANDIR = $(DESTDIR)/usr/local/man/man8
+BINDIR = $(DESTDIR)/usr/bin
+MANDIR = $(DESTDIR)/usr/share/man/man8
RUNDIR = $(DESTDIR)/var/lib/hourglass
DOCDIR = $(DESTDIR)/usr/share/hourglass
INSTALLTARGETS += $(addprefix $(DOCDIR)/,$(DOCS))
INSTALLTARGETS += $(addprefix $(RUNDIR)/,$(OTHER))
+$(RUNDIR)/%.conf: %.conf
+ install -D -T $< $@
+ chmod a-x $@
+
+$(MANDIR)/% $(DOCDIR)/%:%
+ install -D -T $< $@
+ chmod a-x $@
-$(BINDIR)/% $(MANDIR)/% $(RUNDIR)/% $(DOCDIR)/%: %
+$(BINDIR)/% $(RUNDIR)/%: %
install -D -T $< $@
install: $(INSTALLTARGETS)
--- /dev/null
+= hourglass-site(8)
+:doctype: manpage
+:revdate: {sys:date "+%Y-%m-%d %H:%M:%S"}
+:COLON: :
+:EQUALS: =
+
+== NAME
+hourglass-site - Gui tool for editing the Hourglass site configuration.
+
+== SYNOPSIS
+hourglass-site
+
+== DESCRIPTION
+
+A simple Graphical editor for the site configuration variables.
+
+== FILES
+
+hourglass.conf[] is the sie configuration.
+
+== AUTHOR
+Ralph Rönnquist <ralph.ronnquist@gmail.com>
--- /dev/null
+= hourglass-web(8)
+:doctype: manpage
+:revdate: {sys:date "+%Y-%m-%d %H:%M:%S"}
+:COLON: :
+:EQUALS: =
+
+== NAME
+hourglass-web - An HTTP server for reviewing and changing the
+Hourglass schedule remotely.
+
+== SYNOPSIS
+hourglass-web
+
+== DESCRIPTION
+
+This is a simple HTTP server for reviewing and changing the
+Hourglass schedule remotely.
+
+
+== AUTHOR
+Ralph Rönnquist <ralph.ronnquist@gmail.com>