]> gitweb.michael.orlitzky.com - dead/htsn-common.git/blob - makefile
Fix the tar command in the makefile.
[dead/htsn-common.git] / makefile
1 PN = htsn-common
2 SRCS := $(shell find src/ -type f -name '*.hs')
3 BINS = $(patsubst src%.hs, dist/build%.o, $(SRCS))
4
5 .PHONY : dist doc hlint
6
7 $(BINS): $(PN).cabal $(SRCS)
8 echo $(BINS)
9 runghc Setup.hs clean
10 runghc Setup.hs configure --user --prefix=/
11 runghc Setup.hs build
12
13 profile: $(PN).cabal $(SRCS)
14 runghc Setup.hs clean
15 runghc Setup.hs configure --user \
16 --enable-executable-profiling \
17 --prefix=/
18 runghc Setup.hs build
19
20 doc:
21 runghc Setup.hs configure --user --prefix=/
22 runghc Setup.hs hscolour --executables
23 runghc Setup.hs haddock --internal \
24 --executables \
25 --hyperlink-source
26
27 clean:
28 runghc Setup.hs clean
29 rm -f *.log
30 rm -f *.xml
31 rm -rf tmp
32
33 dist:
34 runghc Setup.hs configure --prefix=/
35 TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
36
37 hlint:
38 hlint --ignore="Use camelCase" \
39 --ignore="Redundant bracket" \
40 --color \
41 src