Network.HTTP.Lucu.ResponseWriter
Network.HTTP.Lucu.StaticFile
Network.HTTP.Lucu.Utils
-ghc-options: -threaded -fglasgow-exts -O3
+ghc-options: -fglasgow-exts -O3
--Executable: HelloWorld
--Main-Is: HelloWorld.hs
--Hs-Source-Dirs: ., examples
---ghc-options: -threaded -fglasgow-exts
\ No newline at end of file
+--ghc-options: -threaded -fglasgow-exts -O3
\ No newline at end of file
CABAL_FILE = Lucu.cabal
GHC = ghc
-WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld
+
+build: .setup-config Setup
+ ./Setup build
run: build
@echo ".:.:. Let's go .:.:."
$(WHAT_TO_RUN)
-
-build: .setup-config Setup
- ./Setup build
+ $(MAKE) -C examples run
.setup-config: $(CABAL_FILE) Setup
- ./Setup configure
+ ./Setup configure -p
Setup: Setup.hs
$(GHC) --make Setup
clean:
rm -rf dist Setup Setup.o Setup.hi .setup-config
find . -name '*~' -exec rm -f {} \;
+ $(MAKE) -C examples clean
doc:
./Setup haddock
install: build
./Setup install
-.PHONY: run build clean install doc
\ No newline at end of file
+.PHONY: build run clean install doc
\ No newline at end of file
--- /dev/null
+build:
+ ghc --make HelloWorld -threaded -fglasgow-exts -O3
+
+run: build
+ ./HelloWorld
+
+clean:
+ rm -f HelloWorld *.hi *.o
+
+.PHONY: build run clean
\ No newline at end of file