3 GHCOPTS
=-threaded
-DICONV
-DMAGIC
-ignore-package regex-compat-tdfa
5 .PHONY
: warn
install build
7 @echo
"Use \"make install\" to download and compile dependencies and install diohsc"
9 cabal update
&& cabal
install
14 cabal
install -O2
--installdir .
--overwrite-policy
=always
17 pandoc
--standalone
-f markdown
-t man
< diohsc
.1.md | sed
's/\$$VERSION/${VERSION}/g' >| diohsc
.1
19 dist-newstyle
/sdist
/diohsc-
${VERSION}.
tar.gz
: *.hs README.md CHANGELOG.md COPYING
*.cabal
*.sample diohsc
.1
22 diohsc-
${VERSION}-src.tgz
: dist-newstyle
/sdist
/diohsc-
${VERSION}.
tar.gz
25 diohsc.bundle
: .git
/refs
/heads
/master
26 git bundle create
"$@" HEAD master
28 index.gmi
: index.gmi.in Makefile
29 cat
$< | sed
's/\$$VERSION/${VERSION}/g' > $@
32 cat
$< | sed s
/\.gmi
/.html
/g | .
/tools
/gmi2html.sed
> $@
35 cat
$< | sed s
/\.gmi
/.md
/g | .
/tools
/gmi2md.sed
> $@
38 .
/tools
/gmi2md.sed
< $< > $@
41 .
/tools
/gmi2html.sed
< $< > $@
43 publish
: diohsc-
${VERSION}-src.tgz diohsc.bundle index.gmi index.html README.md README.gmi README.html CHANGELOG.gmi CHANGELOG.md CHANGELOG.html tutorial
/diohsc-tutorial.cast tutorial
/diohsc-tutorial.txt
44 cp
$^
/var
/gemini
/gemini.thegonz.net
/diohsc
/
45 scp
$^ sverige
:html
/diohsc
/