CABAL_FILE = Lucu.cabal
GHC = ghc
-build: .setup-config Setup
+build: dist/setup-config Setup
./Setup build
run: build
@echo ".:.:. Let's go .:.:."
- $(WHAT_TO_RUN)
$(MAKE) -C examples run
-.setup-config: $(CABAL_FILE) Setup
- ./Setup configure -p
+dist/setup-config: $(CABAL_FILE) Setup
+# ./Setup configure --disable-optimization
+ ./Setup configure -O
Setup: Setup.hs
$(GHC) --make Setup
clean:
- rm -rf dist Setup Setup.o Setup.hi .setup-config
+ rm -rf dist Setup Setup.o Setup.hi
find . -name '*~' -exec rm -f {} \;
$(MAKE) -C examples clean
-doc:
+doc: dist/setup-config Setup
./Setup haddock
install: build
- ./Setup install
+ sudo ./Setup install
-.PHONY: build run clean install doc
\ No newline at end of file
+sdist: Setup
+ ./Setup sdist
+
+.PHONY: build run clean install doc sdist