RUNHASKELL = runhaskell default: @echo "Make 'user_install' or 'install'" clean: find . -name *.o -o -name *.hi -o -name *.p_o -o -name *.p_hi | xargs rm user_install: user_conf build haddock user_inst install: conf build haddock inst user_conf: $(RUNHASKELL) Setup.hs configure -p --user --prefix=${HOME} build: $(RUNHASKELL) Setup.hs build haddock: $(RUNHASKELL) Setup.hs haddock user_inst: $(RUNHASKELL) Setup.hs install --user conf: $(RUNHASKELL) Setup.hs configure -p inst: sudo $(RUNHASKELL) ./Setup.hs install