3 .PHONY
: warn
install build
5 @echo
"Use \"make install\" to download and compile dependencies and install htalkat"
7 cabal update
&& cabal
install
11 htalkat
.1: htalkat
.1.md
12 pandoc
--standalone
-f markdown
-t man
< htalkat
.1.md | sed
's/\$$VERSION/${VERSION}/g' >| htalkat
.1
14 dist-newstyle
/sdist
/htalkat-
${VERSION}.
tar.gz
: *.hs README.md CHANGELOG.md COPYING
*.cabal htalkat
.1
17 htalkat-
${VERSION}-src.tgz
: dist-newstyle
/sdist
/htalkat-
${VERSION}.
tar.gz
20 htalkat.bundle
: .git
/refs
/heads
/master
21 git bundle create
"$@" HEAD master
23 index.gmi
: index.gmi.in Makefile
24 cat
$< | sed
's/\$$VERSION/${VERSION}/g' > $@
27 cat
$< | sed s
/\.gmi
/.html
/g | .
/tools
/gmi2html.sed
> $@
30 cat
$< | sed s
/\.gmi
/.md
/g | .
/tools
/gmi2md.sed
> $@
33 .
/tools
/gmi2md.sed
< $< > $@
36 .
/tools
/gmi2html.sed
< $< > $@
38 publish
: htalkat-
${VERSION}-src.tgz htalkat.bundle index.gmi index.html README.md README.gmi README.html CHANGELOG.gmi CHANGELOG.md CHANGELOG.html spec.gmi spec.html
39 cp
$^
/var
/gemini
/gemini.thegonz.net
/htalkat
/
40 scp
$^ sverige
:html
/htalkat
/