mg

port of mg editor (openbsd to linux)
Log | Files | Refs | README

commit 6cf3ee96b2ead2ef55804abe622ca9fa786a74b8
parent febb867dc8262da6fe23d33ce14e6f9b1b651314
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 22 Nov 2014 00:35:05 +0100

improve makefile, add some CFLAGS to make it build

Diffstat:
Makefile | 21+++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -24,11 +24,20 @@ SRCS= autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \ # # More or less standalone extensions. # -SRCS+= cmode.c cscope.c dired.c grep.c tags.c theo.c +SRCS+= cmode.c cscope.c dired.c grep.c tags.c # theo.c -afterinstall: - ${INSTALL} -d ${DESTDIR}${DOCDIR}/mg - ${INSTALL} -m ${DOCMODE} -c ${.CURDIR}/tutorial \ - ${DESTDIR}${DOCDIR}/mg +CFLAGS += -DDEFFILEMODE=0666 -D__dead="" -I. -.include <bsd.prog.mk> +build: clean + cc -c ${SRCS} ${CFLAGS} + cc -o ${PROG} *.o + +clean: + rm -f mg *.o + +#afterinstall: +# ${INSTALL} -d ${DESTDIR}${DOCDIR}/mg +# ${INSTALL} -m ${DOCMODE} -c ${.CURDIR}/tutorial \ +# ${DESTDIR}${DOCDIR}/mg +# +#.include <bsd.prog.mk>