ref: f821a1e0a185c78ee006545710811b2a6f9f451a
parent: 39d8674a9372d5dcf643a759262fc95e4a248fb8
author: Anthony J. Bentley <[email protected]>
date: Thu Oct 18 16:24:27 EDT 2012
Allow a noisy build (user‐configurable).
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
PREFIX = /usr/local
BINPREFIX = ${PREFIX}/bin
MANPREFIX = ${PREFIX}/man
+Q = @
yacc_pre := \
src/asm/yaccprt1.y\
@@ -44,44 +45,44 @@
all: rgbasm rgblib rgblink rgbfix
clean:
- @rm -rf rgbasm $(rgbasm_obj)
- @rm -rf rgblib $(rgblib_obj)
- @rm -rf rgblink $(rgblink_obj)
- @rm -rf rgbfix $(rgbfix_obj)
- @rm -rf src/asm/asmy.c
+ ${Q}rm -rf rgbasm $(rgbasm_obj)
+ ${Q}rm -rf rgblib $(rgblib_obj)
+ ${Q}rm -rf rgblink $(rgblink_obj)
+ ${Q}rm -rf rgbfix $(rgbfix_obj)
+ ${Q}rm -rf src/asm/asmy.c
install: all
- @install -s -m 555 rgbasm ${BINPREFIX}/rgbasm
- @install -s -m 555 rgbfix ${BINPREFIX}/rgbfix
- @install -s -m 555 rgblink ${BINPREFIX}/rgblink
- @install -s -m 555 rgblib ${BINPREFIX}/rgblib
- @install -m 444 src/rgbds.7 ${MANPREFIX}/man7/rgbds.7
- @install -m 444 src/asm/rgbasm.1 \
+ ${Q}install -s -m 555 rgbasm ${BINPREFIX}/rgbasm
+ ${Q}install -s -m 555 rgbfix ${BINPREFIX}/rgbfix
+ ${Q}install -s -m 555 rgblink ${BINPREFIX}/rgblink
+ ${Q}install -s -m 555 rgblib ${BINPREFIX}/rgblib
+ ${Q}install -m 444 src/rgbds.7 ${MANPREFIX}/man7/rgbds.7
+ ${Q}install -m 444 src/asm/rgbasm.1 \
${MANPREFIX}/man1/rgbasm.1
- @install -m 444 src/fix/rgbfix.1 \
+ ${Q}install -m 444 src/fix/rgbfix.1 \
${MANPREFIX}/man1/rgbfix.1
- @install -m 444 src/link/rgblink.1 \
+ ${Q}install -m 444 src/link/rgblink.1 \
${MANPREFIX}/man1/rgblink.1
- @install -m 444 src/lib/rgblib.1 \
+ ${Q}install -m 444 src/lib/rgblib.1 \
${MANPREFIX}/man1/rgblib.1
rgbasm: $(rgbasm_obj)
- @${CC} $(CFLAGS) -o $@ $(rgbasm_obj) -lm
+ ${Q}${CC} $(CFLAGS) -o $@ $(rgbasm_obj) -lm
rgblib: $(rgblib_obj)
- @${CC} $(CFLAGS) -o $@ $(rgblib_obj)
+ ${Q}${CC} $(CFLAGS) -o $@ $(rgblib_obj)
rgblink: $(rgblink_obj)
- @${CC} $(CFLAGS) -o $@ $(rgblink_obj)
+ ${Q}${CC} $(CFLAGS) -o $@ $(rgblink_obj)
rgbfix: $(rgbfix_obj)
- @${CC} $(CFLAGS) -o $@ $(rgbfix_obj)
+ ${Q}${CC} $(CFLAGS) -o $@ $(rgbfix_obj)
.c.o:
- @${CC} $(CFLAGS) -c -o $@ $<
+ ${Q}${CC} $(CFLAGS) -c -o $@ $<
src/asm/asmy.c: src/asm/asmy.y
- @${YACC} -d -o $@ $<
+ ${Q}${YACC} -d -o $@ $<
src/asm/asmy.y: $(yacc_pre)
- @cat $(yacc_pre) > $@
+ ${Q}cat $(yacc_pre) > $@
--- a/README
+++ b/README
@@ -47,6 +47,9 @@
MANPREFIX: Location where the RGBDS man pages will be installed. Defaults
to ${PREFIX}/man.
+Q: Whether to quiet the build or not. To make the build more verbose, clear
+this variable. Defaults to @.
+
Installing RGBDS (Windows)
============================