propellor/Makefile

27 lines
721 B
Makefile
Raw Normal View History

2014-03-30 06:57:02 +00:00
run: pull build
2014-03-30 06:51:21 +00:00
./propellor
2014-03-30 23:16:04 +00:00
devel: build tags
2014-03-30 06:57:02 +00:00
pull:
2014-03-30 06:44:40 +00:00
git pull
2014-03-30 06:57:02 +00:00
build: deps dist/setup-config
2014-03-30 06:59:02 +00:00
cabal build || (cabal configure; cabal build)
2014-03-30 06:51:21 +00:00
ln -sf dist/build/propellor/propellor
2014-03-30 06:48:01 +00:00
deps:
2014-03-30 06:59:02 +00:00
@if [ $$(whoami) = root ]; then apt-get install ghc cabal-install libghc-missingh-dev libghc-ansi-terminal-dev libghc-ifelse-dev libghc-unix-compat-dev libghc-hslogger-dev; fi
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:
rm -rf dist Setup tags
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