Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 88 lines (67 sloc) 2.751 kb
89b74c3 @jaspervdj Big repo cleanup
authored
1 ################################################################################
954cb60 @jaspervdj Typo in Makefile comments
authored
2 # Configuration
89b74c3 @jaspervdj Big repo cleanup
authored
3 ################################################################################
fd42abd @meiersi made GHC version configurable
meiersi authored
4
89b74c3 @jaspervdj Big repo cleanup
authored
5 GHC = ghc
6 GHCI = ghci
a17a58a @jaspervdj Update Makefile
authored
7 GHC_FLAGS = -O2 -fforce-recomp -idoc/examples -ibenchmarks -isrc -itests
fd42abd @meiersi made GHC version configurable
meiersi authored
8
89b74c3 @jaspervdj Big repo cleanup
authored
9 BENCHMARK_FLAGS = --resamples 10000
fd42abd @meiersi made GHC version configurable
meiersi authored
10
89b74c3 @jaspervdj Big repo cleanup
authored
11 ################################################################################
12 # Code generation
13 ################################################################################
fd42abd @meiersi made GHC version configurable
meiersi authored
14
89b74c3 @jaspervdj Big repo cleanup
authored
15 # Generate the actual HTML combinators
16 combinators:
24b17ae @jaspervdj Major cleanup
authored
17 runghc -isrc src/Util/GenerateHtmlCombinators.hs
fd42abd @meiersi made GHC version configurable
meiersi authored
18
89b74c3 @jaspervdj Big repo cleanup
authored
19 # Copy the docs the website directory
20 website-docs:
21 cabal haddock
22 rm -rf website/docs
23 cp -r dist/doc/html/blaze-html website/docs
b2544eb @meiersi added target for benchmarking constructor based approach
meiersi authored
24
89b74c3 @jaspervdj Big repo cleanup
authored
25 ################################################################################
26 # Tests
27 ################################################################################
d1b889e @jaspervdj Add closure/constructor HTML benchmark.
authored
28
89b74c3 @jaspervdj Big repo cleanup
authored
29 # Run the tests
30 test:
a17a58a @jaspervdj Update Makefile
authored
31 $(GHC) $(GHC_FLAGS) -fhpc --make tests/TestSuite.hs
317e0d0 @jaspervdj Add some pre-escaping test cases
authored
32 rm -f TestSuite.tix
587d692 @jaspervdj Compile tests instead of using runghc
authored
33 ./tests/TestSuite
c848022 @meiersi added make target for viewing the core of closure-constructor
meiersi authored
34
1c726ae @jaspervdj Generate test coverage reports
authored
35 # HPC
36 test-hpc:
37 hpc markup --destdir=hpc TestSuite
38
89b74c3 @jaspervdj Big repo cleanup
authored
39 ################################################################################
40 # Benchmarks
41 ################################################################################
b4c3475 @jaspervdj Add a bigtable server as proper benchmark.
authored
42
89b74c3 @jaspervdj Big repo cleanup
authored
43 benchmark:
1f125ec @jaspervdj Fix Makefile
authored
44 $(GHC) $(GHC_FLAGS) --make -main-is RunHtmlBenchmarks benchmarks/RunHtmlBenchmarks.hs
df23d72 @jaspervdj Clean up benchmarks a bit
authored
45 ./benchmarks/RunHtmlBenchmarks $(BENCHMARK_FLAGS) -u results.csv
ccc1019 @jaspervdj Add server hosting all benchmarks.
authored
46
89b74c3 @jaspervdj Big repo cleanup
authored
47 benchmark-server:
48 $(GHC) $(GHC_FLAGS) --make -threaded -main-is BenchmarkServer doc/examples/BenchmarkServer.lhs
6acda53 @meiersi first benchmarks for new builder implementation
meiersi authored
49
89b74c3 @jaspervdj Big repo cleanup
authored
50 snap-benchmark-server:
51 $(GHC) $(GHC_FLAGS) --make -threaded -main-is SnapBenchmarkServer doc/examples/SnapBenchmarkServer.lhs
6acda53 @meiersi first benchmarks for new builder implementation
meiersi authored
52
89b74c3 @jaspervdj Big repo cleanup
authored
53 benchmark-bigtable-non-haskell:
71cc075 @jaspervdj Add Makefile target for ruby/php benchmarks.
authored
54 ruby benchmarks/bigtable/erb.rb
55 ruby benchmarks/bigtable/erubis.rb
56 php -n benchmarks/bigtable/php.php
59eaefc @jaspervdj Add Makefile test target
authored
57
89b74c3 @jaspervdj Big repo cleanup
authored
58 ################################################################################
59 # Switching cabal files
60 ################################################################################
0135bdd @jaspervdj Update website with docs
authored
61
63f9a30 @jaspervdj Simple system to manage multiple cabal files
authored
62 # The current target used
63 CURRENT=$(shell ls *.cabal | sed 's/\.cabal//')
64
89b74c3 @jaspervdj Big repo cleanup
authored
65 # Auxiliary
63f9a30 @jaspervdj Simple system to manage multiple cabal files
authored
66 hide-cabal-files:
86cd739 @jaspervdj Add documentation in Text.Blaze module
authored
67 cabal clean
63f9a30 @jaspervdj Simple system to manage multiple cabal files
authored
68 mv ${CURRENT}.cabal ${CURRENT}.cabal.${CURRENT}
69 mv Setup.hs Setup.hs.${CURRENT}
70
71 blaze-html: hide-cabal-files
72 mv blaze-html.cabal.blaze-html blaze-html.cabal
73 mv Setup.hs.blaze-html Setup.hs
6fc8821 @jaspervdj Add cabal file for HtmlToBlaze tool
authored
74
0fd1a35 @jaspervdj Rename HtmlToBlaze to BlazeFromHtml
authored
75 blaze-from-html: hide-cabal-files
76 mv blaze-from-html.cabal.blaze-from-html blaze-from-html.cabal
77 mv Setup.hs.blaze-from-html Setup.hs
a06ab71 @meiersi added 'clean' target to Makefile
meiersi authored
78
89b74c3 @jaspervdj Big repo cleanup
authored
79 ################################################################################
80 # Switching cabal files
81 ################################################################################
82
a06ab71 @meiersi added 'clean' target to Makefile
meiersi authored
83 # Cleanup
84 clean:
844c3ce @jaspervdj Add XHTML5 option, patch by Hugo Landau
authored
85 rm -rf doc/examples/BenchmarkServer
86 rm -rf benchmarks/HtmlBenchmarks
87 find . -name '*.o' -o -name '*.hi' | xargs rm
Something went wrong with that request. Please try again.