1
0
mirror of https://github.com/sys-fs/tubes synced 2024-11-23 20:20:40 -05:00
tubes/Makefile

24 lines
753 B
Makefile
Raw Permalink Normal View History

2016-09-18 10:31:33 -04:00
CC=cc
2016-11-01 18:43:22 -04:00
override CFLAGS+=-std=c99 -Wall -pedantic -O2 -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
2016-09-18 10:31:33 -04:00
LDFLAGS=-lcrypto -lssl
PREFIX=/usr/local
2016-09-22 21:57:44 -04:00
MANPREFIX=${PREFIX}/share/man
2016-09-18 10:31:33 -04:00
it:
2016-09-22 21:57:44 -04:00
${CC} -s tubes.c ${CFLAGS} ${LDFLAGS} -o tubes
2016-09-18 10:31:33 -04:00
install: it
echo installing executable to ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f tubes ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/tubes
echo installing manpage to ${DESTDIR}/${MANPREFIX}/man1
cp -f tubes.1 ${DESTDIR}/${MANPREFIX}/man1
chmod 644 ${DESTDIR}/${MANPREFIX}/man1/tubes.1
uninstall:
echo removing executable file from ${DESTDIR}${PREFIX}/bin
rm -f ${DESTDIR}${PREFIX}/bin/tubes
echo removing manpage from ${DESTDIR}/${MANPREFIX}/man1
rm -f ${DESTDIR}/${MANPREFIX}/man1/tubes.1