summaryrefslogtreecommitdiff
path: root/Makefile.introspection
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-10-19 15:46:29 -0400
committerColin Walters <walters@verbum.org>2011-10-19 15:46:29 -0400
commit60d0ec439957b76aff2ed0add44e5a7f9bba69dc (patch)
tree216e3039f04d837bfcba52d898c731bc1169d3e9 /Makefile.introspection
parent80de6648b5be315c9f2b73b3f04282e42517568e (diff)
downloadgobject-introspection-60d0ec439957b76aff2ed0add44e5a7f9bba69dc.tar.gz
Makefile.introspection: Allow usage with --header-only
Diffstat (limited to 'Makefile.introspection')
-rw-r--r--Makefile.introspection3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.introspection b/Makefile.introspection
index a0764ac2..228cdde2 100644
--- a/Makefile.introspection
+++ b/Makefile.introspection
@@ -120,7 +120,8 @@ define introspection-scanner
# Basic sanity check, to make sure required variables are set
$(if $($(_gir_name)_FILES),,$(error Need to define $(_gir_name)_FILES))
-$(if $(or $($(_gir_name)_LIBS),
+$(if $(or $(findstring --header-only,$($(_gir_name)_SCANNERFLAGS)),
+ $($(_gir_name)_LIBS),
$($(_gir_name)_PROGRAM)),,
$(error Need to define $(_gir_name)_LIBS or $(_gir_name)_PROGRAM))