add .SECONDARY: rule to preserve generated schemas
authorRyan Lortie <desrt@desrt.ca>
Sat, 22 May 2010 00:08:49 +0000 (20:08 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sat, 22 May 2010 00:10:02 +0000 (20:10 -0400)
If the .gschema.xml file was generated as the result of an implicit make
rule then make would 'rm' it after creating the validity stamp.  This
would cause 'make install' to fail.

m4macros/gsettings.m4

index 73a7e15..329700d 100644 (file)
@@ -34,6 +34,8 @@ all-am: $(gsettings_SCHEMAS:.xml=.valid)
 uninstall-am: uninstall-gsettings-schemas
 install-data-am: install-gsettings-schemas
 
+.SECONDARY: $(gsettings_SCHEMAS)
+
 gsettings__base_list = \
   sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
   sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"