From b6ebf71446d883e5b68075577ce5fc6adfe8fc58 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sun, 5 May 2013 22:34:04 +0200
Subject: [PATCH] Reduced verbosity.
---
src/Makefile | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/Makefile b/src/Makefile
index e62886c73..635c87470 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -22,13 +22,17 @@ CFLAGS += -MMD -MP -O -std=c89 -I common \
LDLIBS += -lm
+.SUFFIXES:
+
+.PHONY: all $(PROGS) mostlyclean clean install uninstall
+
all: $(PROGS)
mostlyclean:
$(RM) -r ../wrk
-clean: mostlyclean
- $(RM) -r ../bin
+clean:
+ $(RM) -r ../wrk ../bin
install: all
$(foreach prog,$(PROGS),$(INSTALL_recipe))
@@ -36,10 +40,6 @@ install: all
uninstall:
$(foreach prog,$(PROGS),$(UNINSTALL_recipe))
-.PHONY: all $(PROGS) mostlyclean clean install uninstall
-
-.SUFFIXES:
-
##########
define INSTALL_recipe
@@ -65,7 +65,7 @@ $1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
$$($1_OBJS): | ../wrk/$1
../wrk/$1:
- mkdir -p $$@
+ @mkdir -p $$@
DEPS += $$($1_OBJS:.o=.d)
@@ -87,11 +87,11 @@ endef
##########
../wrk/%.o: %.c
- @echo $(CC) $<
+ @echo $<
@$(CC) -c $(CFLAGS) -o $@ $<
../bin:
- mkdir $@
+ @mkdir $@
$(eval $(call OBJS_template,common))
../wrk/common/common.a: $(common_OBJS)
--
2.39.5