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

From: Robert Collins <robert.collins@dont-contact.us>
Date: Sat, 9 Dec 2000 10:29:32 +1100

Hi,
    I kept on forgettting to extract the gif files from icons.shar when I grab a new cvs branch....

This patch will allow make install to work whether the icons have been extracted or now. Tested on a vanilla openBSD so I think I
managed to miss any obvious GNU-onlyism's

Rob

--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/08 23:20:40
@@ -45,12 +45,19 @@
                  anthony-xbm.gif \
                  anthony-xpm.gif

-all:
+all: $(ICONS)

+.for iconfile in $(ICONS)
+$(iconfile): extractgifs
+.endfor
+
+extractgifs:
+ @$(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 Fri Dec 08 2000 - 16:21:16 MST

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