Prevent unnecessary regeneration of VAPI
authorPhilip Chimento <philip.chimento@gmail.com>
Sun, 5 Feb 2012 16:14:50 +0000 (17:14 +0100)
committerPhilip Chimento <philip.chimento@gmail.com>
Sun, 5 Feb 2012 16:14:50 +0000 (17:14 +0100)
Vapigen doesn't update the timestamp of the VAPI file when the
contents don't change; so when the GIR changes but the VAPI doesn't,
the dependency tracking got confused. This updates the timestamp
properly.

libchimara/Makefile.am

index e823694e3fccf135addf1825511de42a9e99bd09..7b029806a23d79bedac9744cfe50fb23435f536d 100644 (file)
@@ -109,8 +109,9 @@ vapidir = $(datadir)/vala/vapi
 dist_vapi_DATA = chimara.vapi
 
 if BUILDING_VAPI
-chimara.vapi: Chimara-1.0.gir
-       $(AM_V_GEN)$(VAPIGEN) --library=chimara --pkg gtk+-2.0 Chimara-1.0.gir
+chimara.vapi: $(INTROSPECTION_GIRS)
+       $(AM_V_GEN)$(VAPIGEN) --library=chimara --pkg gtk+-2.0 Chimara-1.0.gir && \
+       touch $@
 endif
 
 MAINTAINERCLEANFILES = chimara.vapi