Skip to content

Commit

Permalink
Merge pull request #340 from jjcarstens/reduce-makefile-noise
Browse files Browse the repository at this point in the history
Reduce Makefile prints to clean build output
  • Loading branch information
crertel authored May 5, 2024
2 parents 93526e0 + 65c4ec5 commit 4da2346
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,18 @@ docs_report:
MIX_ENV=docs mix inch.report

$(BUILD)/%.o: c_src/%.c
@echo " CC $(notdir $@)"
$(CC) -c $(ERL_CFLAGS) $(CFLAGS) -o $@ $<

$(PREFIX)/line.so: $(BUILD)/line.o
$(CC) $^ $(ERL_LDFLAGS) $(LDFLAGS) -o $@

$(PREFIX)/matrix.so: $(BUILD)/matrix.o
$(CC) $^ $(ERL_LDFLAGS) $(LDFLAGS) -o $@

$(PREFIX)/bitmap.so: $(BUILD)/bitmap.o
$(CC) $^ $(ERL_LDFLAGS) $(LDFLAGS) -o $@
$(PREFIX)/%.so: $(BUILD)/%.o
@echo " LD $(notdir $@)"
$(CC) $< $(ERL_LDFLAGS) $(LDFLAGS) -o $@

$(PREFIX) $(BUILD):
mkdir -p $@

clean:
$(RM) $(NIF) c_src/*.o

# Don't echo commands unless the caller exports "V=1"
${V}.SILENT:

0 comments on commit 4da2346

Please sign in to comment.