Adding commands to print out the file getting built. This increases the usefulness of make -s

This commit is contained in:
jim_nance%yahoo.com 2000-02-25 03:55:50 +00:00
Родитель 4727b65a38
Коммит 7543a6e3da
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -92,6 +92,8 @@ OS_LIBS :=
endif
endif
REPORT_BUILD = @echo $(notdir $<)
#
# Library rules
#
@ -710,6 +712,7 @@ endif
endif
%: %.c
$(REPORT_BUILD)
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
$(CC) -Fo$@ -c $(CFLAGS) $<
else
@ -717,6 +720,7 @@ else
endif
%.o: %.c Makefile.in
$(REPORT_BUILD)
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
$(CC) -Fo$@ -c $(CFLAGS) $<
else
@ -741,9 +745,11 @@ moc_%.cpp: %.h
# Please keep the next two rules in sync.
#
%.o: %.cc
$(REPORT_BUILD)
$(CCC) -o $@ -c $(COMPILE_CXXFLAGS) $<
%.o: %.cpp
$(REPORT_BUILD)
ifdef STRICT_CPLUSPLUS_SUFFIX
echo "#line 1 \"$*.cpp\"" | cat - $*.cpp > t_$*.cc
$(CCC) -o $@ -c $(COMPILE_CXXFLAGS) t_$*.cc
@ -1079,6 +1085,7 @@ $(XPIDL_GEN_DIR):
# with any addition to the directory, regenerating all .h files -> everything.
$(XPIDL_GEN_DIR)/%.h: %.idl $(XPIDL_COMPILE)
$(REPORT_BUILD)
$(XPIDL_COMPILE) -m header -w -I $(DIST)/idl -I$(srcdir) -o $(XPIDL_GEN_DIR)/$* $<
@if test -n "$(findstring $*.h, $(EXPORTS))"; \
then echo "*** WARNING: file $*.h generated from $*.idl overrides $(srcdir)/$*.h"; else true; fi
@ -1090,6 +1097,7 @@ ifndef NO_GEN_XPT
# generate intermediate .xpt files into $(XPIDL_GEN_DIR), then link
# into $(XPIDL_MODULE).xpt and export it to $(DIST)/bin/components.
$(XPIDL_GEN_DIR)/%.xpt: %.idl $(XPIDL_COMPILE)
$(REPORT_BUILD)
$(XPIDL_COMPILE) -m typelib -w -I $(DIST)/idl -I$(srcdir) -o $(XPIDL_GEN_DIR)/$* $<
$(XPIDL_GEN_DIR)/$(XPIDL_MODULE).xpt: $(patsubst %.idl,$(XPIDL_GEN_DIR)/%.xpt,$(XPIDLSRCS))