Makefile: Utilize Automake macros for silent rules output

Building with --enable-silent-rules makes it easier to identify errors
or warnings in the build output. Automake provides macros for custom
rules to use, so that they will print a similar message to rules which
run the compiler or linker:

...
  CC       libpieusb_la-pieusb.lo
  CCLD     libpieusb.la
  CCLD     libsane-pieusb.la
  CC       libsane_pixma_la-pixma-s.lo
  GEN      pixma/pixma_sane_options.h
  GEN      pixma/pixma_sane_options.c
  CC       pixma/libpixma_la-pixma.lo
...

This does not change the current output if silent rules are disabled.
escl-add-user-and-password
David Ward 2022-04-17 20:16:19 -04:00
rodzic 939d62f836
commit 03bfd4232c
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -93,7 +93,8 @@ becfg: $(BACKEND_CONFS)
SUFFIXES = .conf.in .conf
.conf.in.conf:
@echo Generating $@ from $^
$(AM_V_GEN)
@if $(AM_V_P); then echo Generating $@ from $^; fi
@sed -e 's|@DATADIR@|$(datadir)|g' \
-e 's|@CONFIGDIR@|$(configdir)|g' \
-e 's|@DOCDIR@|$(docdir)|g' \
@ -1452,10 +1453,12 @@ libpixma_la_CPPFLAGS = $(AM_CPPFLAGS) $(XML_CFLAGS) -DBACKEND_NAME=pixma
pixma/pixma.c: pixma/pixma_sane_options.h pixma/pixma_sane_options.c
pixma/pixma_sane_options.h:
@echo Generating $@ from $(@D)/pixma.c
$(AM_V_GEN)
@if $(AM_V_P); then echo Generating $@ from $(@D)/pixma.c; fi
@(cd $(@D); $(PYTHON) scripts/pixma_gen_options.py h < pixma.c > $(@F))
pixma/pixma_sane_options.c:
@echo Generating $@ from $(@D)/pixma.c
$(AM_V_GEN)
@if $(AM_V_P); then echo Generating $@ from $(@D)/pixma.c; fi
@(cd $(@D); $(PYTHON) scripts/pixma_gen_options.py < pixma.c > $(@F))
EXTRA_DIST += pixma/pixma_sane_options.c

Wyświetl plik

@ -95,7 +95,8 @@ MAN2HTML = nroff -c -man |\
sed 's,<BODY>,<BODY BGCOLOR=\#FFFFFF TEXT=\#000000><H1 ALIGN=CENTER><IMG SRC="/images/sane.png" HEIGHT=117 WIDTH=346></H1>,'
%.1 %.5 %.7 %.8: %.man
@echo "Generating manpage $@...";
$(AM_V_GEN)
@if $(AM_V_P); then echo "Generating manpage $@..."; fi
@sed -e 's|@DATADIR@|$(datadir)|g' \
-e 's|@CONFIGDIR@|$(configdir)|g' \
-e 's|@DOCDIR@|$(docdir)|g' \