Makefile - nonhttpd - A httpd serving nothing.
(HTM) git clone git://r-36.net/nonhttpd
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
Makefile (1155B)
---
1 # nonhttpd - a commandline mail client
2 # See LICENSE file for copyright and license details.
3
4 include config.mk
5
6 all: config.mk notice
7
8 notice:
9 @echo Just use »make install«.
10
11 dist: clean
12 @echo creating dist tarball
13 @mkdir -p ${NAME}-${VERSION}
14 @cp -R LICENSE Makefile README.md config.mk \
15 nonhttpd socat-nonhttpd.sh ${NAME}-${VERSION}
16 @tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
17 @gzip ${NAME}-${VERSION}.tar
18 @rm -rf ${NAME}-${VERSION}
19
20 install: all
21 @echo installing executable files to ${DESTDIR}${PREFIX}/bin
22 @mkdir -p ${DESTDIR}${PREFIX}/bin
23 @cp -f nonhttpd ${DESTDIR}${PREFIX}/bin
24 @chmod 755 ${DESTDIR}${PREFIX}/bin/nonhttpd
25 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
26 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
27 @sed "s/VERSION/${VERSION}/g" < nonhttpd.1 > ${DESTDIR}${MANPREFIX}/man1/nonhttpd.1
28 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/nonhttpd.1
29
30 uninstall:
31 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
32 @rm -f ${DESTDIR}${PREFIX}/bin/nonhttpd
33 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
34 @rm -f ${DESTDIR}${MANPREFIX}/man1/nonhttpd.1
35
36
37 .PHONY: all clean dist install uninstall
38