Makefile

Tue, 16 Jul 2019 20:31:08 +0200

author
David Demelier <markand@malikania.fr>
date
Tue, 16 Jul 2019 20:31:08 +0200
changeset 22
e49c41217e6e
child 23
3e21222edcfd
permissions
-rw-r--r--

create new minimal website

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

mercurial