Skip to content

Commit 9d9a794

Browse files
committed
Clean up C build output
1 parent 18705b0 commit 9d9a794

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
@@ -62,9 +62,11 @@ install: $(PREFIX) $(BUILD) $(NIF)
6262
$(OBJ): $(HEADERS) Makefile
6363

6464
$(BUILD)/%.o: src/%.c
65+
@echo " CC $(notdir $@)"
6566
$(CC) -c $(ERL_CFLAGS) $(CFLAGS) -o $@ $<
6667

6768
$(NIF): $(OBJ)
69+
@echo " LD $(notdir $@)"
6870
$(CC) -o $@ $(ERL_LDFLAGS) $(LDFLAGS) $^
6971

7072
$(PREFIX) $(BUILD):
@@ -74,3 +76,6 @@ clean:
7476
$(RM) $(NIF) $(OBJ)
7577

7678
.PHONY: all clean calling_from_make install
79+
80+
# Don't echo commands unless the caller exports "V=1"
81+
${V}.SILENT:

0 commit comments

Comments
 (0)