1header-decl-macro-check: $(filter %.h,$(DIST_SOURCES))
2	@(for H in $^; \
3	  do \
4	    if [ x"$$(grep -l G_BEGIN_DECLS $$H)" != x"$$(grep -l G_END_DECLS $$H)" ]; \
5	    then \
6	        echo Unbalanced G_\*_DECL macros in $$H; \
7	        exit 1; \
8	    fi;\
9	  done)
10