Makefile: add {,un}install targets
[hdata.git] / Makefile
blobb4fbd4e4796ce94ef0b6b94aa9fefeda9e9589ab
1 PREFIX ?= /usr
3 hdata:
4 ghc --make hdata
6 clean:
7 rm -rf *.o
8 rm -rf *.hi
9 rm -rf *.db
10 rm -rf hdata
12 install:
13 @mkdir -p ${DESTDIR}${PREFIX}/bin
14 @cp -f hdata ${DESTDIR}${PREFIX}/bin
15 @chmod 755 ${DESTDIR}${PREFIX}/bin/hdata
17 uninstall:
18 @rm -f ${DESTDIR}${PREFIX}/bin/hdata