From 256c50c610c3897e7166b26e66b0fd8df59b0219 Mon Sep 17 00:00:00 2001 From: mbays Date: Sat, 22 Jul 2023 00:00:01 +0000 Subject: [PATCH] clarify Makefile --- Makefile | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 8195df7..2a080e2 100644 --- a/Makefile +++ b/Makefile @@ -2,27 +2,16 @@ VERSION=0.1.14.2 GHCOPTS=-threaded -DICONV -DMAGIC -ignore-package regex-compat-tdfa -.PHONY: build install clean -build: - @echo "NOTE: All haskell dependencies must be installed for this to build." 1>&2 - @echo "Probably you want to skip directly to \"make install\"" 1>&2 - @echo "" 1>&2 - cabal build -install: +.PHONY: warn install build +warn: + @echo "Use \"make install\" to download and compile dependencies and install diohsc" +install: *.hs cabal update && cabal install +build: *.hs + cabal build diohsc: *.hs - ghc --make -Wall ${GHCOPTS} diohsc.hs -diohsc-O: *.hs - ghc -o $@ --make -O -Wall ${GHCOPTS} diohsc.hs -diohsc-dynamic: *.hs - ghc -o $@ --make -dynamic -Wall ${GHCOPTS} diohsc.hs -diohsc-static: - ghc -o $@ --make ${GHCOPTS} -optl-static -optl-pthread diohsc.hs -diohsc-prof: *.hs - ghc -o $@ --make ${GHCOPTS} -rtsopts -prof -fprof-auto diohsc.hs -clean: - rm diohsc *.hi *.o + cabal install -O2 --installdir . --overwrite-policy=always diohsc.1: diohsc.1.md pandoc --standalone -f markdown -t man < diohsc.1.md | sed 's/\$$VERSION/${VERSION}/g' >| diohsc.1 -- 2.11.4.GIT