Makefiles: prefix compilation messages (for parallel builds)

This commit is contained in:
Michael Stapelberg
2011-10-02 16:04:18 +01:00
parent e73812802c
commit 4f6e58e250
5 changed files with 21 additions and 21 deletions

View File

@ -9,17 +9,17 @@ HEADERS=$(wildcard *.h)
# Depend on the specific file (.c for each .o) and on all headers
%.o: %.c ${HEADERS}
echo "CC $<"
echo "[i3-input] CC $<"
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
all: i3-input
i3-input: ${FILES}
echo "LINK i3-input"
echo "[i3-input] LINK i3-input"
$(CC) $(LDFLAGS) -o $@ ${FILES} $(LIBS)
install: all
echo "INSTALL"
echo "[i3-input] INSTALL"
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -m 0755 i3-input $(DESTDIR)$(PREFIX)/bin/