X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fpic16%2FMakefile.subdir;h=102973be19219377a0b100810defeaac85cc3445;hb=52df981797010227196dd29cd77831d01e1825a8;hp=3ee509cdcc52c99e799fa6c95e319a1d5b5a2575;hpb=c3ef95592254689e5f87e940970f0f41993777cc;p=fw%2Fsdcc diff --git a/device/lib/pic16/Makefile.subdir b/device/lib/pic16/Makefile.subdir index 3ee509cd..102973be 100644 --- a/device/lib/pic16/Makefile.subdir +++ b/device/lib/pic16/Makefile.subdir @@ -45,7 +45,9 @@ ifneq (,$(strip $(TARGETS))) # usually install $(LIB_LIB) or $(OBJS), race condition in "[ -d x ] || mkdir x" install : recurse $(OBJS) $(LIB_LIB) @[ -d "$(topsrcdir)/$(installdir)" ] || ( $(MKDIR) "$(topsrcdir)/$(installdir)" || true ); +ifndef SILENT @echo "[INSTALL] $(patsubst $(topsrcdir)/$(builddir)/%,%,$(TARGETS))"; +endif $(Q)$(CP) $(TARGETS) "$(topsrcdir)/$(installdir)" else # used in subdirs like libc/ctype whose files @@ -58,10 +60,14 @@ clean : recurse $(Q)-$(RM) .dummy $(foreach suf,asm d p lst hex cod sym,$(OBJS:.o=.$(suf))) @-echo "dummy" > .dummy $(Q)-$(RM) .dummy $(OBJS) $(LIB_LIB) + @-echo "dummy" > .dummy + $(Q)-$(RM) .dummy $(TARGETS) + @-echo "dummy" > .dummy + $(Q)-$(RM) .dummy $(addprefix $(topsrcdir)/$(installdir)/,$(notdir $(TARGETS))) $(Q)-[ ! -d "$(topsrcdir)/$(builddir)" ] || $(RMDIR) "$(topsrcdir)/$(builddir)" clean-intermediate : recurse @-echo "dummy" > .dummy - $(Q)-$(RM) .dummy $(foreach suf,asm d p lst hex cod sym,$(OBJS:.o=.$(suf))) + $(Q)-$(RM) .dummy $(foreach suf,p lst hex cod sym,$(OBJS:.o=.$(suf))) include $(topsrcdir)/Makefile.rules