scribo

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs

commit e61e8e2a4eecc4ede095cd76160d0949d321758f
parent c0cb6ad8079571c03c4442a600cf2477c41abae8
Author: Willy Goiffon <dev@z3bra.org>
Date:   Sun,  6 Sep 2020 19:35:40 +0200

Refresh makefile and config.mk

Diffstat:
Aconfig.mk | 9+++++++++
Mmakefile | 9++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/config.mk b/config.mk @@ -0,0 +1,9 @@ +CC = cc +LD = ${CC} + +PREFIX = /usr/local +MANDIR = ${PREFIX}/man + +CPPFLAGS = -D_XOPEN_SOURCE -D_DEFAULT_SOURCE +CFLAGS = -Wall -Wextra +LDFLAGS = diff --git a/makefile b/makefile @@ -2,5 +2,12 @@ include config.mk scribo: scribo.o rfc5322.o +install: scribo + mkdir -p ${DESTDIR}${PREFIX}/bin + cp scribo ${DESTDIR}${PREFIX}/bin/scribo + +uninstall: + rm ${DESTDIR}${PREFIX}/bin/scribo + clean: - rm -f mailog *.o + rm -f scribo *.o