tAdd mkfile to build project - scribo - Email-based phlog generator
(HTM) git clone git://git.z3bra.org/scribo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a35f45347a0de649383b37c35fee3aceb7596072
(DIR) parent 9a400a8eac3ca377dbabdc0e1109efa069b814b3
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Wed, 9 Sep 2020 23:05:47 +0200
Add mkfile to build project
Diffstat:
A mkfile | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/mkfile b/mkfile
t@@ -0,0 +1,22 @@
+<config.mk
+
+all:V: scribo
+
+scribo: scribo.o rfc5322.o qp.o base64.o strlcpy.o strlcat.o
+ $LD $LDFLAGS -o $target $prereq
+
+%.o: %.c
+ $CC $CPPFLAGS $CFLAGS -c $stem.c
+
+install:V: scribo scribo.1
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ mkdir -p ${DESTDIR}${MANDIR}/man1
+ cp scribo ${DESTDIR}${PREFIX}/bin/scribo
+ cp scribo.1 ${DESTDIR}${MANDIR}/man1/scribo.1
+
+uninstall:V:
+ rm ${DESTDIR}${PREFIX}/bin/scribo
+ rm ${DESTDIR}${MANDIR}/man1/scribo.1
+
+clean:V:
+ rm -f scribo *.o