propellor/Makefile

26 lines
782 B
Makefile
Raw Normal View History

2014-03-31 20:20:38 +00:00
run: build
2014-03-30 06:51:21 +00:00
./propellor
2014-03-31 20:20:38 +00:00
dev: build tags
2014-03-30 06:57:02 +00:00
build: deps dist/setup-config
if ! cabal build; then cabal configure; cabal build; fi
2014-03-30 06:51:21 +00:00
ln -sf dist/build/propellor/propellor
2014-03-30 06:48:01 +00:00
deps:
@if [ $$(whoami) = root ]; then apt-get -y install gnupg ghc cabal-install libghc-missingh-dev libghc-ansi-terminal-dev libghc-ifelse-dev libghc-unix-compat-dev libghc-hslogger-dev libghc-network-dev; fi || true
2014-03-30 06:48:01 +00:00
2014-03-30 06:44:40 +00:00
dist/setup-config: propellor.cabal
2014-03-30 04:08:02 +00:00
cabal configure
clean:
2014-03-31 03:38:41 +00:00
rm -rf dist Setup tags propellor privdata/local
find -name \*.o -exec rm {} \;
find -name \*.hi -exec rm {} \;
# hothasktags chokes on some template haskell etc, so ignore errors
tags:
find . | grep -v /.git/ | grep -v /tmp/ | grep -v /dist/ | grep -v /doc/ | egrep '\.hs$$' | xargs hothasktags > tags 2>/dev/null
2014-03-31 00:46:31 +00:00
.PHONY: tags