Create a configuration file (included at build-time)
[hdata.git] / Makefile
blob3c9eb58167c2be8582beafd0be7e13cd56f6d343
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 src/Tools/*.o
11 rm -rf src/Tools/*.hi
12 rm -rf *.db
13 rm -rf src/hddb
14 rm -rf hddb
16 install:
17 @mkdir -p ${DESTDIR}${PREFIX}/bin
18 @cp -f hddb ${DESTDIR}${PREFIX}/bin
19 @chmod 755 ${DESTDIR}${PREFIX}/bin/hddb
20 @mkdir -p ${DESTDIR}${MANPREFIX}
21 @cp -f hddb.1 ${DESTDIR}${MANPREFIX}/hddb.1
23 uninstall:
24 @rm -f ${DESTDIR}${PREFIX}/bin/hddb
25 @rm -f ${DESTDIR}${MANPREFIX}/hddb.1