| 1 |
bootstrap := bootstrap-3.1.1-dist |
| 2 |
|
| 3 |
files := index.html tutorial.html |
| 4 |
deps = bootstrap-custom.css background.jpg |
| 5 |
install := $(files) $(deps) |
| 6 |
destdir := $(HOME)/public_html/wreq |
| 7 |
|
| 8 |
all: $(files) |
| 9 |
|
| 10 |
install: $(files) |
| 11 |
-mkdir -p $(destdir) |
| 12 |
cp -a $(install) $(destdir) |
| 13 |
cp -a $(bootstrap) $(destdir) |
| 14 |
-chcon -R -t httpd_sys_content_t $(destdir) |
| 15 |
|
| 16 |
%.html: %.md template.html $(deps) |
| 17 |
pandoc $< -o $@ --smart --template template.html \ |
| 18 |
--css $(bootstrap)/css/bootstrap.css \ |
| 19 |
--css bootstrap-custom.css \ |
| 20 |
--toc --toc-depth 2 |
| 21 |
|
| 22 |
clean: |
| 23 |
-rm -f $(files) |