#!/usr/bin/env make # license: gnu gpl version 3 or higher. # copyright 2016 rsiddharth build_dir=_build # docs header=assets/includes/header.html footer=assets/includes/footer.html index_src=index.org index_out=$(build_dir)/index.html nothing: @echo "Give me something to make. " html: $(index_out) .PHONY: html $(build_dir): @mkdir $@ $(index_out): $(index_src) $(header) $(footer) $(build_dir) @cat $(header) > $@ @pandoc -f org -t html $< >> $@ @cat $(footer) >> $@ clean: $(build_dir) @rm -rf $< .PHONY: clean