Only copy pngs when generating builtin cache

svn path=/trunk/; revision=17766
This commit is contained in:
Matthias Clasen 2007-05-02 02:15:36 +00:00
parent 098f74dfb1
commit 321817db53
2 changed files with 36 additions and 25 deletions

View File

@ -1,3 +1,8 @@
2007-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/Makefile.am: When generating gtkbuiltincache.h, only copy
pngs.
2007-05-01 Matthias Clasen <mclasen@redhat.com> 2007-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do): * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do):

View File

@ -881,6 +881,7 @@ STOCK_ICONS = \
stock-icons/16/gtk-about.png \ stock-icons/16/gtk-about.png \
stock-icons/16/gtk-add.png \ stock-icons/16/gtk-add.png \
stock-icons/16/gtk-cdrom.png \ stock-icons/16/gtk-cdrom.png \
stock-icons/16/gtk-close.png \
stock-icons/16/gtk-connect.png \ stock-icons/16/gtk-connect.png \
stock-icons/16/gtk-convert.png \ stock-icons/16/gtk-convert.png \
stock-icons/16/gtk-copy.png \ stock-icons/16/gtk-copy.png \
@ -1095,31 +1096,36 @@ GENERATED_ICONS = \
# need to copy the icons so that we can replace the generated ones with # need to copy the icons so that we can replace the generated ones with
# symlinks, even in the readonly srcdir case # symlinks, even in the readonly srcdir case
stamp-icons: $(STOCK_ICONS) stamp-icons: $(STOCK_ICONS)
if [ ! -d stock-icons ]; then \ if [ ! -d stock-icons ]; then \
cp -R $(srcdir)/stock-icons .; \ for d in 16 20 24 32 48; do \
chmod -R u+w stock-icons; \ mkdir -p stock-icons/$$d; \
fi && \ done; \
for i in 16 24; do \ for f in $(STOCK_ICONS); do \
(cd stock-icons/$$i \ cp $(srcdir)/$$f $$(dirname $$f); \
&& $(RM) gtk-go-back-rtl.png \ done; \
&& $(LN_S) gtk-go-forward-ltr.png gtk-go-back-rtl.png \ chmod -R u+w stock-icons; \
&& $(RM) gtk-go-forward-rtl.png \ fi && \
&& $(LN_S) gtk-go-back-ltr.png gtk-go-forward-rtl.png \ for i in 16 24; do \
&& $(RM) gtk-goto-first-rtl.png \ (cd stock-icons/$$i \
&& $(LN_S) gtk-goto-last-ltr.png gtk-goto-first-rtl.png \ && $(RM) gtk-go-back-rtl.png \
&& $(RM) gtk-goto-last-rtl.png \ && $(LN_S) gtk-go-forward-ltr.png gtk-go-back-rtl.png \
&& $(LN_S) gtk-goto-first-ltr.png gtk-goto-last-rtl.png \ && $(RM) gtk-go-forward-rtl.png \
&& $(RM) gtk-media-forward-rtl.png \ && $(LN_S) gtk-go-back-ltr.png gtk-go-forward-rtl.png \
&& $(LN_S) gtk-media-rewind-ltr.png gtk-media-forward-rtl.png \ && $(RM) gtk-goto-first-rtl.png \
&& $(RM) gtk-media-next-rtl.png \ && $(LN_S) gtk-goto-last-ltr.png gtk-goto-first-rtl.png \
&& $(LN_S) gtk-media-previous-ltr.png gtk-media-next-rtl.png \ && $(RM) gtk-goto-last-rtl.png \
&& $(RM) gtk-media-previous-rtl.png \ && $(LN_S) gtk-goto-first-ltr.png gtk-goto-last-rtl.png \
&& $(LN_S) gtk-media-next-ltr.png gtk-media-previous-rtl.png \ && $(RM) gtk-media-forward-rtl.png \
&& $(RM) gtk-media-rewind-rtl.png \ && $(LN_S) gtk-media-rewind-ltr.png gtk-media-forward-rtl.png\
&& $(LN_S) gtk-media-forward-ltr.png gtk-media-rewind-rtl.png \ && $(RM) gtk-media-next-rtl.png \
&& $(RM) gtk-save.png \ && $(LN_S) gtk-media-previous-ltr.png gtk-media-next-rtl.png \
&& $(LN_S) gtk-floppy.png gtk-save.png) \ && $(RM) gtk-media-previous-rtl.png \
done \ && $(LN_S) gtk-media-next-ltr.png gtk-media-previous-rtl.png \
&& $(RM) gtk-media-rewind-rtl.png \
&& $(LN_S) gtk-media-forward-ltr.png gtk-media-rewind-rtl.png\
&& $(RM) gtk-save.png \
&& $(LN_S) gtk-floppy.png gtk-save.png) \
done \
&& touch stamp-icons && touch stamp-icons
if CROSS_COMPILING if CROSS_COMPILING