comparison Makefile @ 22:e49c41217e6e

create new minimal website
author David Demelier <markand@malikania.fr>
date Tue, 16 Jul 2019 20:31:08 +0200
parents
children 3e21222edcfd
comparison
equal deleted inserted replaced
21:0b664fc9fca7 22:e49c41217e6e
1 #
2 # Makefile -- basic makefile for irccd-www
3 #
4 # Copyright (c) 2013-2019 David Demelier <markand@malikania.fr>
5 #
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #
18
19 FILES= index.html \
20 versioning.html
21 PANDOC= pandoc
22 PANDOC_FLAGS= -f markdown -t html5 --template templates/template.html
23 RM= rm -f
24
25 all: ${FILES}
26
27 ${FILES}: templates/template.html
28
29 .md.html:
30 @echo GEN $@
31 @${PANDOC} ${PANDOC_FLAGS} -o $@ $<
32
33 clean:
34 @${RM} ${FILES}
35
36 .SUFFIXES: .html .md
37 .PHONY: all clean