# HG changeset patch # User Mike Miller # Date 1437851200 14400 # Node ID 2f2e8b4996cb6fb111ac6dbfaa0e11009093d8e2 # Parent c23b313232c753f0ef309e268fd5099e18200862 build: Avoid triggering rebuild of icons and desktop files (bug #45567) * etc/module.mk: Make $(octave_dirstamp) file an order-only prerequisite for built icons and desktop files since we only need for it to exist. diff --git a/etc/module.mk b/etc/module.mk --- a/etc/module.mk +++ b/etc/module.mk @@ -70,25 +70,25 @@ all-icons: etc/icons/octave.appdata.xml etc/icons/octave.desktop $(BUILT_ICONS) -etc/icons/octave.appdata.xml: etc/icons/octave.appdata.xml.in Makefile etc/icons/$(octave_dirstamp) +etc/icons/octave.appdata.xml: etc/icons/octave.appdata.xml.in Makefile | etc/icons/$(octave_dirstamp) $(AM_V_GEN)rm -f $@-t $@ && \ $(SED) < $< > $@-t \ -e "s|%OCTAVE_DESKTOP_FILE%|${VENDOR}-octave.desktop|" && \ mv $@-t $@ -etc/icons/octave.desktop: etc/icons/octave.desktop.in Makefile etc/icons/$(octave_dirstamp) +etc/icons/octave.desktop: etc/icons/octave.desktop.in Makefile | etc/icons/$(octave_dirstamp) $(AM_V_GEN)rm -f $@-t $@ && \ $(SED) < $< > $@-t \ -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \ -e "s|%OCTAVE_PREFIX%|${prefix}|" && \ mv $@-t $@ -$(BUILT_PNG_ICONS): etc/icons/octave-logo.svg etc/icons/$(octave_dirstamp) +$(BUILT_PNG_ICONS): etc/icons/octave-logo.svg | etc/icons/$(octave_dirstamp) $(AM_V_GEN)rm -f $@-t $@ && \ $(RSVG_CONVERT) -w $(lastword $(subst -, ,$(patsubst %.png,%,$@))) $< > $@-t && \ mv $@-t $@ -etc/icons/octave-logo.ico: $(WINDOWS_PNG_ICONS) etc/icons/$(octave_dirstamp) +etc/icons/octave-logo.ico: $(WINDOWS_PNG_ICONS) | etc/icons/$(octave_dirstamp) $(AM_V_GEN)rm -f $@-t $@ && \ $(ICOTOOL) --create --raw $(WINDOWS_PNG_ICONS) > $@-t && \ mv $@-t $@