Mercurial > irccd-www
annotate Makefile @ 23:3e21222edcfd
update for 3.0.0
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 16 Aug 2019 11:52:15 +0200 |
parents | e49c41217e6e |
children | 2549facbedfb |
rev | line source |
---|---|
22
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
1 # |
23 | 2 # Makefile -- basic BSD Makefile for irccd-www |
22
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 |
23 | 23 MANDOC= mandoc |
24 MANDOC_PDF= -T pdf | |
25 MANDOC_HTML= -T html -O man=%N.html | |
22
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
26 RM= rm -f |
23 | 27 VERSION= 3.0.0 |
28 SOURCE= irccd-${VERSION}.tar.xz | |
29 MANSRCS= irccd-api.7 \ | |
30 irccd-ipc.7 \ | |
31 irccd-templates.7 \ | |
32 irccd-test.1 \ | |
33 irccd.1 \ | |
34 irccd.conf.5 \ | |
35 irccdctl.1 \ | |
36 irccdctl.conf.5 | |
37 PLUGINS= ask \ | |
38 auth \ | |
39 hangman \ | |
40 history \ | |
41 joke \ | |
42 links \ | |
43 logger \ | |
44 plugin \ | |
45 roulette \ | |
46 tictactoe | |
22
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
47 |
23 | 48 .SUFFIXES: .html .md |
49 | |
50 all: site man | |
22
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
51 |
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
52 ${FILES}: templates/template.html |
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
53 |
23 | 54 ${SOURCE}: |
55 @wget -q http://releases.malikania.fr/irccd/${VERSION}/$@ -O $@ | |
56 | |
57 site: ${FILES} | |
58 | |
59 man: ${SOURCE} | |
60 @tar xf ${SOURCE} | |
61 .for m in ${MANSRCS} | |
62 @echo GEN ${m:C/[0-9]$/pdf/:_} | |
63 @${MANDOC} ${MANDOC_PDF} irccd-${VERSION}/man/$m > ${_} | |
64 .endfor | |
65 .for p in ${PLUGINS} | |
66 @echo GEN irccd-plugin-${p}.pdf | |
67 @${MANDOC} ${MANDOC_PDF} irccd-${VERSION}/plugins/${p}/${p}.7 > irccd-plugin-${p}.pdf | |
68 .endfor | |
69 .for m in ${MANSRCS} | |
70 @echo GEN ${m:C/[0-9]$/html/:_} | |
71 @${MANDOC} ${MANDOC_HTML} irccd-${VERSION}/man/$m > ${_} | |
72 .endfor | |
73 .for p in ${PLUGINS} | |
74 @echo GEN irccd-plugin-${p}.html | |
75 @${MANDOC} ${MANDOC_HTML} irccd-${VERSION}/plugins/${p}/${p}.7 > irccd-plugin-${p}.html | |
76 .endfor | |
77 @rm -rf irccd-${VERSION} | |
78 | |
79 clean: | |
80 @${RM} ${SOURCE} *.html *.pdf | |
81 | |
82 publish: site man | |
83 @rsync -av css webfonts *.html *.pdf ${DESTINATION} | |
84 | |
22
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
85 .md.html: |
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
86 @echo GEN $@ |
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
87 @${PANDOC} ${PANDOC_FLAGS} -o $@ $< |
e49c41217e6e
create new minimal website
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
88 |
23 | 89 .PHONY: all clean download man publish site |