You better tunnel it via a phony target to avoid multiple invocations on
parallell builds, and then you also need to care for builds outside of
the source directory. install expects the icons to be in the source
directory...
.PHONY: extract_icons
$(ICONS): extract_icons
extract_icons:
@$(SHELL) -c "cd $(srcdir); $(SHELL) $(srcdir)/icons.shar"
/Henrik
Robert Collins wrote:
>
> Take two
>
> file starts on the next line
> Index: icons/Makefile.in
> ===================================================================
> RCS file: /cvsroot/squid/squid/icons/Makefile.in,v
> retrieving revision 1.1.1.3.12.1
> diff -u -r1.1.1.3.12.1 Makefile.in
> --- icons/Makefile.in 2000/05/03 19:18:11 1.1.1.3.12.1
> +++ icons/Makefile.in 2000/12/09 01:45:51
> @@ -45,12 +45,15 @@
> anthony-xbm.gif \
> anthony-xpm.gif
>
> -all:
> +all: $(ICONS)
>
> +$(ICONS):
> + @$(SHELL) -c "$(SHELL) $(srcdir)/icons.shar"
> +
> icons.shar:
> shar --no-timestamp $(ICONS) > $@
>
> -install: install-mkdirs anthony-xpm.gif
> +install: all install-mkdirs
> @for f in $(ICONS); do \
> if test -f $(DEFAULT_ICON_DIR)/$$f ; then \
> :; \
Received on Wed Dec 13 2000 - 09:57:43 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:04 MST