From: Julian Ospald Date: Sat Aug 4 22:47:38 UTC 2012 Subject: build system make build system verbose --- GNUmakefile.template +++ GNUmakefile.template @@ -66,7 +66,7 @@ .c.o: @echo "Compiling:" $*.c - @$(CC) $(COPTS) -c $*.c + $(CC) $(COPTS) -c $*.c all: time-stamp dvdisaster images @@ -79,18 +79,23 @@ @if test $(CFG_SYS_OPTIONS) == -DSYS_MINGW; \ then echo "Linking : dvdisaster-win, dvdisaster"; \ windres -v winres.rc -O coff -o winres.o >/dev/null ; \ + echo "$(CC) $(COPTS) -c dvdisaster.c"; \ $(CC) $(COPTS) -c dvdisaster.c ; \ + echo "$(CC) $(LOPTS) $(OFILES) winres.o $(LIBS) -lole32 -mwindows -o dvdisaster-win"; \ $(CC) $(LOPTS) $(OFILES) winres.o $(LIBS) -lole32 -mwindows -o dvdisaster-win; \ + echo "$(CC) $(COPTS) -DWIN_CONSOLE -c dvdisaster.c"; \ $(CC) $(COPTS) -DWIN_CONSOLE -c dvdisaster.c ; \ + echo "$(CC) $(LOPTS) $(OFILES) $(LIBS) -lole32 -o dvdisaster"; \ $(CC) $(LOPTS) $(OFILES) $(LIBS) -lole32 -o dvdisaster; \ if ! test -e signature; then dvdisaster --debug --sign; fi; \ else echo "Linking : dvdisaster"; \ + echo "$(CC) $(LOPTS) $(OFILES) $(LIBS) -o dvdisaster"; \ $(CC) $(LOPTS) $(OFILES) $(LIBS) -o dvdisaster; \ fi @if test -e locale/de/LC_MESSAGES/dvdisaster.mo \ || echo $(WITH_OPTIONS) | grep "NLS_NO" >/dev/null; \ then echo "not touching locale"; \ - else $(MAKE) --no-print-directory -C locale; \ + else echo "$(MAKE) --no-print-directory -C locale" ; $(MAKE) --no-print-directory -C locale; \ fi inlined-icons.h: icons/read.png icons/create.png icons/scan.png icons/fix.png icons/verify.png @@ -119,17 +124,17 @@ else echo "#define MODIFIED_SOURCE 1" >> help-dialogs.h; \ fi @echo "Compiling:" $*.c - @$(CC) $(COPTS) -c $*.c + $(CC) $(COPTS) -c $*.c rs-encoder-sse2.o: rs-encoder-sse2.c @echo "Compiling:" $*.c - @$(CC) $(SSE2_OPTIONS) $(COPTS) -c $*.c + $(CC) $(SSE2_OPTIONS) $(COPTS) -c $*.c locale: - @$(MAKE) --no-print-directory -C locale + $(MAKE) --no-print-directory -C locale simple-md5sum: md5.c - @$(CC) $(COPTS) -DSIMPLE_MD5SUM md5.c -o simple-md5sum + $(CC) $(COPTS) -DSIMPLE_MD5SUM md5.c -o simple-md5sum # Stuff needed to generate or prepare the documentation # TAG: online-docs @@ -140,6 +145,7 @@ @if test -e THESE_ARE_THE_DEVEL_SOURCES; then \ echo "not touching images"; \ else \ + echo "$(MAKE) --no-print-directory -C tools"; \ $(MAKE) --no-print-directory -C tools; \ echo -n "Unpacking images (may take a while) ... "; \ cd $(SRCDIR)/documentation/images; \ @@ -170,7 +176,7 @@ @echo "- done" tools/pngpack: tools/pngpack.c - @$(MAKE) --no-print-directory -C tools + $(MAKE) --no-print-directory -C tools thumbnails: pack-images @echo -n "unpacking thumbnails ... " --- tools/Makefile.template +++ tools/Makefile.template @@ -41,7 +41,7 @@ .c.o: @echo "Compiling:" $*.c - @$(CC) $(COPTS) -DPNGPACK -c $*.c + $(CC) $(COPTS) -DPNGPACK -c $*.c # Note that we build a self-contained (statically linked) pngpack.exe # under Windows so that we do not have to ship the .dll files for @@ -50,8 +50,8 @@ pngpack: $(OFILES) @echo "Linking : pngpack"; @if test $(CFG_SYS_OPTIONS) == -DSYS_MINGW; \ - then $(CC) $(LOPTS) $(OFILES) $(LIBS) -lz --static -o pngpack; \ - else $(CC) $(LOPTS) $(OFILES) $(LIBS) -o pngpack; \ + then echo "$(CC) $(LOPTS) $(OFILES) $(LIBS) -lz --static -o pngpack" ; $(CC) $(LOPTS) $(OFILES) $(LIBS) -lz --static -o pngpack; \ + else echo "$(CC) $(LOPTS) $(OFILES) $(LIBS) -o pngpack" ; $(CC) $(LOPTS) $(OFILES) $(LIBS) -o pngpack; \ fi show: