more work on datasets
[pspp] / Smake
diff --git a/Smake b/Smake
index 227affa36ba56bfe74a7991128e0b9d04a9dc11d..5a11401aa9f954580853d8b283bc7486beb64980 100644 (file)
--- a/Smake
+++ b/Smake
@@ -1,5 +1,7 @@
 # -*- makefile -*-
 
+all: everything
+
 # Adjust these to reflect where you've installed gnulib.
 GNULIB = ../gnulib
 GNULIB_TOOL = $(GNULIB)/gnulib-tool
@@ -181,7 +183,16 @@ src/ui/gui/icons/mimetypes/48x48/application-x-spss-sav.png \
 src/ui/gui/icons/mimetypes/48x48/application-x-spss-sps.png \
 src/ui/gui/icons/mimetypes/48x48/application-x-spss-zsav.png \
 
-MISC_ICONS = src/ui/gui/icons/splash.png
+
+src/ui/gui/artwork/splash-t.svg: src/ui/gui/artwork/splash.svg
+       cp $< $@
+
+src/ui/gui/artwork/splash-r.svg: src/ui/gui/artwork/splash.svg
+       sed -e '/inkscape:label="Overlay"/s/inline/none/' $< > $@
+
+
+MISC_ICONS = src/ui/gui/icons/splash-t.png \
+       src/ui/gui/icons/splash-r.png
 
 
 ACTION_ICONS = \
@@ -297,7 +308,7 @@ src/ui/gui/icons/actions/16x16/help-about.png
 
 ICONS=$(CATEGORY_ICONS) $(ACTION_ICONS) $(MIMETYPE_ICONS) $(APP_ICONS) $(MISC_ICONS)
 
-all: prep_ph  icons
+everything: prep_ph  icons
        $(MAKE) -f Smake Makefile.in configure
 
 icons: $(ICONS) src/ui/gui/icons/icon-names.c
@@ -320,7 +331,8 @@ src/ui/gui/icons/manifest: $(MAKEFILE_LIST)
        echo >> $@
        printf 'icon_srcs = ' >> $@
        for i in  $(ICONS); do \
-         printf ' \\\n\t '$$i | sed -e 's/\.png$$/.svg/' -e 's%/icons/%/artwork/%' >> $@ ; \
+         printf ' \\\n\t ' >> $@ ;\
+         printf $$i | awk '{ gsub(".png",".svg")gsub("icons","artwork");printf $$0}' >> $@ ; \
        done
        echo ' ' >> $@
        echo >> $@
@@ -379,8 +391,7 @@ _debug: all
 
 
 
-PO_FILES = po/ChangeLog \
-po/Rules-quot po/boldquot.sed          \
+PO_FILES = po/Rules-quot po/boldquot.sed \
 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                        \
 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po    \
 po/Makevars.template po/pspp.pot
@@ -400,7 +411,8 @@ clean:
        rm -f doc/stamp-vti
        rm -f config.h.in~
        rm -f config.h.in
-       find . -name Makefile.in -exec rm -f {} \; 
+       rm -f gl/Makefile.in
+       rm -f Makefile.in
        rm -f compile
        rm -f ltmain.sh
        rm -f reloc-ldflags install-reloc