build: Use $DESTDIR in install-data-local
authorColin Walters <walters@verbum.org>
Thu, 9 Sep 2010 22:38:46 +0000 (18:38 -0400)
committerColin Walters <walters@verbum.org>
Thu, 9 Sep 2010 22:38:46 +0000 (18:38 -0400)
tests/Makefile.am

index c95a4cc..feb0847 100644 (file)
@@ -52,5 +52,5 @@ check: Everything-1.0.typelib GIMarshallingTests-1.0.typelib
 
 install-data-local:
        for src in everything.c everything.h gimarshallingtests.c gimarshallingtests.h; do \
-         install -m 644 -D $$src $(datadir)/gobject-introspection-1.0/tests/$$src; \
+         install -m 644 -D $$src $(DESTDIR)$(datadir)/gobject-introspection-1.0/tests/$$src; \
        done