Skip to content

Commit 7e2f99b

Browse files
committed
Clean up C build output
1 parent 18e4b35 commit 7e2f99b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ install: $(PREFIX) $(BUILD) $(NIF)
7272
$(OBJ): $(HEADERS) Makefile
7373

7474
$(BUILD)/%.o: src/%.c
75+
@echo " CC $(notdir $@)"
7576
$(CC) -c $(ERL_CFLAGS) $(CFLAGS) -o $@ $<
7677

7778
$(NIF): $(OBJ)
79+
@echo " LD $(notdir $@)"
7880
$(CC) -o $@ $(ERL_LDFLAGS) $(LDFLAGS) $^
7981

8082
$(PREFIX) $(BUILD):
@@ -84,3 +86,6 @@ clean:
8486
$(RM) $(NIF) $(OBJ)
8587

8688
.PHONY: all clean calling_from_make install
89+
90+
# Don't echo commands unless the caller exports "V=1"
91+
${V}.SILENT:

0 commit comments

Comments
 (0)