summaryrefslogtreecommitdiff
path: root/Setup.hs
blob: 547d6a156e65431fd039d592c3f728eca404cf10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{- cabal setup file -}

import Distribution.Simple
import System.Cmd

main = defaultMainWithHooks simpleUserHooks {
	preConf = makeSources,
	postClean = makeClean
}

makeSources _ _ = do
	system "make sources"
	return (Nothing, [])

makeClean _ _ _ _ = do
	system "make clean"
	return ()