aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorUwe Hermann2009-07-16 14:55:22 +0200
committerUwe Hermann2009-07-16 14:55:22 +0200
commitf0661cb343976d752f512644dc117125d102f89f (patch)
treef8bcc88f830d2086bc959a31f29e94997c79326f /Makefile
parent0efee48451d7eff92b7e6bd455aa0ef04b9afe17 (diff)
Make default build silent, use 'make V=1' for verbose build.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 02cb0eb..88bd0bf 100644
--- a/Makefile
+++ b/Makefile
@@ -25,18 +25,26 @@ INCLUDEDIR = $(DESTDIR)/$(PREFIX)/include
LIBDIR = $(DESTDIR)/$(PREFIX)/lib
INSTALL = install
+# Do not print "Entering directory ...".
+MAKEFLAGS += --no-print-directory
+
+# Be silent per default, but 'make V=1' will show all compiler calls.
+ifneq ($(V),1)
+Q := @
+endif
+
all: build
build:
- $(MAKE) -C lib all
+ $(Q)$(MAKE) -C lib all
install: build
- $(INSTALL) -d $(INCLUDEDIR)/libopenstm32
- $(INSTALL) -d $(LIBDIR)
- $(INSTALL) -m 0644 include/libopenstm32.h $(INCLUDEDIR)
- $(INSTALL) -m 0644 include/libopenstm32/*.h $(INCLUDEDIR)/libopenstm32
- $(INSTALL) -m 0644 lib/*.a $(LIBDIR)
+ $(Q)$(INSTALL) -d $(INCLUDEDIR)/libopenstm32
+ $(Q)$(INSTALL) -d $(LIBDIR)
+ $(Q)$(INSTALL) -m 0644 include/libopenstm32.h $(INCLUDEDIR)
+ $(Q)$(INSTALL) -m 0644 include/libopenstm32/*.h $(INCLUDEDIR)/libopenstm32
+ $(Q)$(INSTALL) -m 0644 lib/*.a $(LIBDIR)
clean:
- $(MAKE) -C lib clean
+ $(Q)$(MAKE) -C lib clean