Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Aug 30, 2018
1 parent 60a40a1 commit 91bcd01
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.PHONY: rmdoc wiki

BINDIR := bin
LIBDIR := lib
MANDIR := man
Expand All @@ -26,6 +24,18 @@ $(MANDIR)/%.1: $(BINDIR)/%
$(MANDIR)/%.sh.3: $(LIBDIR)/%.sh
shellman -tmanpage $< -o $@

$(WIKIDIR)/home.md: templates/wiki_home.md $(BINDIR) $(LIBDIR)
shellman -tpath:$< -o $@ \
--context project=debug \
scripts="$(SCRIPTS)" \
libraries="$(LIBRARIES)"

$(WIKIDIR)/_sidebar.md: templates/wiki_sidebar.md $(BINDIR) $(LIBDIR)
shellman -tpath:$< -o $@ \
--context project=debug \
scripts="$(SCRIPTS)" \
libraries="$(LIBRARIES)"

$(WIKIDIR)/%.md: $(BINDIR)/%
shellman -twikipage $< -o $@

Expand All @@ -34,17 +44,6 @@ $(WIKIDIR)/%.sh.md: $(LIBDIR)/%.sh

man: $(MANPAGES)

wiki: $(WIKIPAGES)
shellman -tpath:templates/wiki_home.md -o wiki/home.md \
--context project=debug \
scripts="$(SCRIPTS)" \
libraries="$(LIBRARIES)"
shellman -tpath:templates/wiki_sidebar.md -o wiki/_sidebar.md \
--context project=debug \
scripts="$(SCRIPTS)" \
libraries="$(LIBRARIES)"
wiki: $(WIKIPAGES) $(WIKIDIR)/home.md $(WIKIDIR)/_sidebar.md

doc: man wiki

rmdoc:
rm man/* wiki/Scripts/* wiki/Library/*

0 comments on commit 91bcd01

Please sign in to comment.