Introduction
Introduction Statistics Contact Development Disclaimer Help
Simplify Makefile output to be easier debuggable. - geomyidae - A small C-based…
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit 134b64204e21b6c2572b7f933a7d961abdd904f0
parent 4e66272c8cba2a8d17464ed5af2b2a02221d554d
Author: Christoph Lohmann <[email protected]>
Date: Sun, 7 Jun 2020 12:55:39 +0200
Simplify Makefile output to be easier debuggable.
Thanks for the hints Evil_Bob.
Diffstat:
M Makefile | 52 +++++++++++------------------…
1 file changed, 19 insertions(+), 33 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -16,52 +16,38 @@ GEOM_LDFLAGS = -L/usr/lib -L. ${LDFLAGS}
SRC = main.c ind.c handlr.c
OBJ = ${SRC:.c=.o}
-all: options ${NAME}
-
-options:
- @echo ${NAME} build options:
- @echo "CFLAGS = ${GEOM_CFLAGS}"
- @echo "LDFLAGS = ${GEOM_LDFLAGS}"
- @echo "CC = ${CC}"
+all: ${NAME}
.c.o:
- @echo CC $<
- @${CC} ${GEOM_CFLAGS} -c $<
+ ${CC} ${GEOM_CFLAGS} -c $<
${OBJ}:
${NAME}: ${OBJ}
- @echo CC -o $@
- @${CC} -o $@ ${OBJ} ${GEOM_LDFLAGS}
+ ${CC} -o $@ ${OBJ} ${GEOM_LDFLAGS}
clean:
- @echo cleaning
- @rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz
+ rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz
install: all
- @echo installing executable to ${DESTDIR}${BINDIR}
- @mkdir -p "${DESTDIR}${BINDIR}"
- @cp -f ${NAME} "${DESTDIR}${BINDIR}"
- @chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
- @echo installing manpage to "${DESTDIR}${MANDIR}"
- @mkdir -p "${DESTDIR}${MANDIR}"
- @cp -f ${NAME}.8 "${DESTDIR}${MANDIR}"
- @chmod 644 "${DESTDIR}${MANDIR}/${NAME}.8"
+ mkdir -p "${DESTDIR}${BINDIR}"
+ cp -f ${NAME} "${DESTDIR}${BINDIR}"
+ chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
+ mkdir -p "${DESTDIR}${MANDIR}"
+ cp -f ${NAME}.8 "${DESTDIR}${MANDIR}"
+ chmod 644 "${DESTDIR}${MANDIR}/${NAME}.8"
uninstall:
- @echo removing executable file from ${DESTDIR}${BINDIR}
- @rm -f "${DESTDIR}${BINDIR}/${NAME}"
- @echo removing manpage from "${DESTDIR}${MANDIR}"
- @rm -f "${DESTDIR}${MANDIR}/${NAME}.8"
+ rm -f "${DESTDIR}${BINDIR}/${NAME}"
+ rm -f "${DESTDIR}${MANDIR}/${NAME}.8"
dist: clean
- @echo creating dist tarball
- @mkdir -p ${NAME}-${VERSION}
- @cp -R rc.d CGI README LICENSE index.gph Makefile ${NAME}.8 \
+ mkdir -p ${NAME}-${VERSION}
+ cp -R rc.d CGI README LICENSE index.gph Makefile ${NAME}.8 \
*.c *.h ${NAME}-${VERSION}
- @tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
- @gzip ${NAME}-${VERSION}.tar
- @mv ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}.tgz
- @rm -rf "${NAME}-${VERSION}"
+ tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
+ gzip ${NAME}-${VERSION}.tar
+ mv ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}.tgz
+ rm -rf "${NAME}-${VERSION}"
-.PHONY: all options clean dist install uninstall
+.PHONY: all clean dist install uninstall
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.