Initial import
[clawsker.git] / Makefile
1 #
2 # Clawsker makefile
3 #
4
5 NAME=clawsker
6 PREFIX=/usr/local
7 BINDIR=${PREFIX}/bin
8 DATADIR=${PREFIX}/share
9 LIBDIR=${PREFIX}/lib/${NAME}
10 MANDIR=${DATADIR}/man
11 MAN1DIR=${MANDIR}/man1
12
13 all: ${NAME}.1
14
15 ${NAME}.1:
16         pod2man ${NAME} > ${NAME}.1
17
18 install: all install-dirs
19         install -m 0755 ${NAME} ${DESTDIR}${BINDIR}
20         install -m 0644 ${NAME}.1 ${DESTDIR}${MAN1DIR}
21
22 install-dirs:
23         install -d ${DESTDIR}${BINDIR}
24         install -d ${DESTDIR}${MAN1DIR}
25
26 uninstall:
27         rm -f ${DESTDIR}${BINDIR}/${NAME}
28         rm -f ${DESTDIR}${MAN1DIR}/${NAME}.1
29
30 clean:
31         rm -f ${NAME}.1 *~
32
33 .PHONY: all install install-dirs uninstall clean
34