add some style stuff
This commit is contained in:
parent
2872dca785
commit
22b4411641
109 changed files with 699 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -7,17 +7,25 @@ TEMPLATE ?= $(DATADIR)/template.html
|
|||
PAGES != find $(PAGESDIR) -name '*.md'
|
||||
OUTPUTPAGES = $(patsubst $(PAGESDIR)/%.md,$(BUILDDIR)/%.html,$(PAGES))
|
||||
|
||||
STYLE != find style -type f
|
||||
OUTPUTSTYLE = $(patsubst %,$(BUILDDIR)/%,$(STYLE))
|
||||
|
||||
OUTPUT = $(OUTPUTPAGES) $(OUTPUTSTYLE)
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: build
|
||||
build: $(OUTPUTPAGES)
|
||||
build: $(OUTPUT)
|
||||
|
||||
$(BUILDDIR)/%.html: $(PAGESDIR)/%.md $(TEMPLATE)
|
||||
mkdir -p $(dir $@)
|
||||
pandoc -s --toc --template $(TEMPLATE) -o $@ $<
|
||||
|
||||
$(BUILDDIR)/%: %
|
||||
mkdir -p $(dir $@)
|
||||
cp $< $@
|
||||
|
||||
.PHONY: clean distclean
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue