hback-0.0.3: Makefile
all: build
configure:
runhaskell Setup.lhs configure
# If configuring for a trial, we configure as user (perhaps not necessary since
# we use copy instead of install) and specify the hback project directory as the
# prefix to use. When installed (using install or copy), this results in the
# hback executable ending up in the bin subdirectory of the hback project.
configure_trial:
runhaskell Setup.lhs configure --user --prefix=${PWD}
# Make a trial version of the app that will be available at ./bin/hback. We use
# copy rather than install here in order to register the app (which install
# does in either the user-specific (if --user) package database or the
# global database).
trial: configure_trial
runhaskell Setup.lhs build
runhaskell Setup.lhs copy
build: configure
runhaskell Setup.lhs build
install:
runhaskell Setup.lhs install
clean:
rm -f hback
rm -f *.hi
rm -f *.o
rm -rf ./dist/
rm -rf ./bin/
rm -rf ./share/