Re: [PATCH] extract gifs from icons.shar at make time

From: Robert Collins <robert.collins@dont-contact.us>
Date: Thu, 14 Dec 2000 07:20:17 +1100

Why are the icons extracted into the source dir?

Howabout we add the
.PHONY target,

but rather than extracting into the source dir, alter the install line and remove the $(srcdir)/ from it.

I've just tried that and it installed ok.

Rob

----- Original Message -----
From: "Henrik Nordstrom" <hno@hem.passagen.se>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: <squid-dev@squid-cache.org>
Sent: Thursday, December 14, 2000 3:56 AM
Subject: Re: [PATCH] extract gifs from icons.shar at make time

> 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 - 13:11:38 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:04 MST