fix makefile
[hdata.git] / Makefile
blob2ab0954f39b0758d5e273d460aa81b9b65268a1b
1 PREFIX ?= /usr
2 MANPREFIX ?= ${PREFIX}/share/man/man1
4 hddb:
5 ghc -o hddb -isrc -isrc/Tools src/Main.hs
7 clean:
8 rm -rf src/*.o
9 rm -rf src/*.hi
10 rm -rf *.o
11 rm -rf *.hi
12 rm -rf src/Tools/*.o
13 rm -rf src/Tools/*.hi
14 rm -rf *.db
15 rm -rf src/hddb
16 rm -rf hddb
18 install:
19 @mkdir -p ${DESTDIR}${PREFIX}/bin
20 @cp -f hddb ${DESTDIR}${PREFIX}/bin
21 @chmod 755 ${DESTDIR}${PREFIX}/bin/hddb
22 @mkdir -p ${DESTDIR}${MANPREFIX}
23 @cp -f hddb.1 ${DESTDIR}${MANPREFIX}/hddb.1
25 uninstall:
26 @rm -f ${DESTDIR}${PREFIX}/bin/hddb
27 @rm -f ${DESTDIR}${MANPREFIX}/hddb.1