Code

i18n. Fixed palette makefile (see Bug #672228 can't compile: missing palettes.h,...
[inkscape.git] / share / palettes / Makefile.am
index a23be3a4cf19d15631060517cd33003ab251662f..b633a2acd64283f4970d3787e92d58239f236019 100644 (file)
@@ -3,23 +3,38 @@ palettesdir = $(datadir)/inkscape/palettes
 
 palettes_DATA = \
     README \
-    inkscape.gpl \
-    Tango-Palette.gpl \
-    svg.gpl \
-    webhex.gpl \
-    websafe22.gpl \
     Blues.gpl \
+    echo-palette.gpl \
     Gold.gpl \
     Greens.gpl \
     Gray.gpl \
     Hilite.gpl \
+    inkscape.gpl \
+    LaTeX-Beamer.gpl \
     Khaki.gpl \
+    MATLAB-Jet-72.gpl \
     Reds.gpl \
     Royal.gpl \
+    svg.gpl \
+    Tango-Palette.gpl \
     Topographic.gpl \
     Ubuntu.gpl \
-    windows.gpl \
-    LaTeX-Beamer.gpl
-    
+    webhex.gpl \
+    websafe22.gpl \
+    windowsXP.gpl \
+    palettes.h
+
+palettes_i18n = \
+    echo-palette.gpl \
+    inkscape.gpl \
+    LaTeX-Beamer.gpl \
+    svg.gpl \
+    Tango-Palette.gpl \
+    Ubuntu.gpl
+
+palettes.h: i18n.py $(palettes_i18n)
+       $(srcdir)/i18n.py $(foreach i,$(palettes_i18n),$(srcdir)/$(i)) > $(srcdir)/palettes.h
 
-EXTRA_DIST = $(palettes_DATA)
+EXTRA_DIST = $(palettes_DATA) \
+             i18n.py
+