Skip to content
Browse files

Some Makefile improvements.

  • Loading branch information...
1 parent 6e702a1 commit ba78b2e030a4470aa8b9d22b01abf6b15290e99b @jgm committed
Showing with 6 additions and 2 deletions.
  1. +6 −2 Makefile
View
8 Makefile
@@ -1,10 +1,14 @@
testdir = MarkdownTest
+GHCOPTS ?= -O2 -Wall
Markdown : Markdown.hs Text/Pandoc/XML.hs Text/Parsers/Frisby.hs Text/Parsers/Frisby/Char.hs
- ghc -O2 -Wall --make Markdown.hs
+ ghc $(GHCOPTS) --make Markdown.hs
test : Markdown
${testdir}/MarkdownTest.pl --tidy --script=./Markdown --testdir=${testdir}/Tests
clean :
- -rm Markdown.o Markdown.hi Markdown
+ -rm Markdown.hi Markdown.o Markdown \
+ Text/Pandoc/XML/XML.hi Text/Pandoc/XML/XML.o \
+ Text/Parsers/Frisby.hi Text/Parsers/Frisby.o \
+ Text/Parsers/Frisby/Char.hi Text/Parsers/Frisby/Char.o

0 comments on commit ba78b2e

Please sign in to comment.
Something went wrong with that request. Please try again.