# I will cabalize this when it ready for Hackage. For now, make it easiest.

TARGETS = cabal-autodeb cabal-autorpm

DEBS = $(shell find AutoPkg/ -name \*.hs)

all : $(TARGETS)

clean :
	rm -f $(TARGETS)
	find . -name \*.hi -o -name \*.o | xargs rm -f


cabal-autodeb : $(DEBS) autodeb.hs
	ghc --make autodeb.hs -o $@

cabal-autorpm : $(DEBS) autorpm.hs
	ghc --make autorpm.hs -o $@

