From 4e11d526da54cd3967b71a0e8cf3ecab84e5c8b0 Mon Sep 17 00:00:00 2001 From: nhkeni Date: Sun, 10 Mar 2024 21:53:33 -0400 Subject: [PATCH] Show only active .c.o commands; clean up temp file from make depend --- sys/unix/Makefile.src | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/unix/Makefile.src b/sys/unix/Makefile.src index 5961270e9..46766aa9c 100644 --- a/sys/unix/Makefile.src +++ b/sys/unix/Makefile.src @@ -454,10 +454,12 @@ QUIETCC=0 # Rule /=/ allows 2 definitions of char array brief_feeling # fi $(TARGETPFX)%.o : %.c - if [ x$(NOSTATICCORE) = 'x' ]; then \ + @if [ x$(NOSTATICCORE) = 'x' ]; then \ + echo $(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $< ; \ $(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $< ; \ else \ ( \ + echo "Generating " intermediate file .$< ; \ $(AWK) ' \ BEGIN{print "#line 1 \"$<\""}; \ /=/{print;next}; \ @@ -465,6 +467,7 @@ $(TARGETPFX)%.o : %.c sub(/^static( |$$)/, ""){print;next}; \ {print}; \ ' < $< > .$< && \ + echo $(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ .$< ; \ $(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ .$< ; \ ) \ fi @@ -833,7 +836,7 @@ updatedepend: updatedepend-setup cp Makefile.src ../../src && \ make -C ../../src MAKEFILE_NAME=Makefile.src -f Makefile.src depend2 && \ mv ../../src/Makefile.src . - @rm -f ../$(HACK_H) + @rm -f ../$(HACK_H) ../../include/nhlua.h # check pwd, create bogus derived files updatedepend-setup: @@ -860,6 +863,8 @@ MAKEFILE_NAME=Makefile depend: ../sys/unix/depend.awk \ $(SYSCSRC) $(WINCSRC) $(SYSCXXSRC) $(WINCXXSRC) \ $(CHAINSRC) $(GENCSRC) $(HACKCSRC) + $(MAKE) depend2 + depend2: $(WINQTMOC) $(AWK) -f ../sys/unix/depend.awk ../include/*.h ../win/*/*.h \ $(SYSCSRC) $(WINCSRC) $(SYSCXXSRC) $(WINCXXSRC) \