3 GHCOPTS
=-threaded
-DICONV
-DMAGIC
-ignore-package regex-compat-tdfa
5 .PHONY
: build
install clean
7 @echo
"NOTE: All haskell dependencies must be installed for this to build." 1>&2
8 @echo
"Probably you want to skip directly to \"make install\"" 1>&2
12 cabal update
&& cabal
install
15 ghc
--make
-Wall
${GHCOPTS} diohsc.hs
17 ghc
-o
$@
--make
-O
-Wall
${GHCOPTS} diohsc.hs
19 ghc
-o
$@
--make
-dynamic
-Wall
${GHCOPTS} diohsc.hs
21 ghc
-o
$@
--make
${GHCOPTS} -optl-static
-optl-pthread diohsc.hs
23 ghc
-o
$@
--make
${GHCOPTS} -rtsopts
-prof
-fprof-auto diohsc.hs
28 pandoc
--standalone
-f markdown
-t man
< diohsc
.1.md | sed
's/\$$VERSION/${VERSION}/g' >| diohsc
.1
30 dist-newstyle
/sdist
/diohsc-
${VERSION}.
tar.gz
: *.hs README.md CHANGELOG.md COPYING
*.cabal
*.sample diohsc
.1
33 diohsc-
${VERSION}-src.tgz
: dist-newstyle
/sdist
/diohsc-
${VERSION}.
tar.gz
36 diohsc.bundle
: .git
/refs
/heads
/master
37 git bundle create
"$@" HEAD master
39 index.gmi
: index.gmi.in Makefile
40 cat
$< | sed
's/\$$VERSION/${VERSION}/g' > $@
43 cat
$< | sed s
/\.gmi
/.html
/g | .
/tools
/gmi2html.sed
> $@
46 cat
$< | sed s
/\.gmi
/.md
/g | .
/tools
/gmi2md.sed
> $@
49 .
/tools
/gmi2md.sed
< $< > $@
52 .
/tools
/gmi2html.sed
< $< > $@
54 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
55 cp
$^
/var
/gemini
/gemini.thegonz.net
/diohsc
/
56 scp
$^ sverige
:html
/diohsc
/