aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile.am
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-04-12 23:22:57 +0800
committerChristian Persch <chpe@src.gnome.org>2008-04-12 23:22:57 +0800
commitbc3acca7eed4f90a33f43b624b4a49d09a75160e (patch)
treef4d5ccc7e255f72befc74ccdb7141ada1d6cf430 /lib/Makefile.am
parent4cdf2b787c92977a7883c2f4eae8c5e5f97dfd54 (diff)
downloadgsoc2013-epiphany-bc3acca7eed4f90a33f43b624b4a49d09a75160e.tar
gsoc2013-epiphany-bc3acca7eed4f90a33f43b624b4a49d09a75160e.tar.gz
gsoc2013-epiphany-bc3acca7eed4f90a33f43b624b4a49d09a75160e.tar.bz2
gsoc2013-epiphany-bc3acca7eed4f90a33f43b624b4a49d09a75160e.tar.lz
gsoc2013-epiphany-bc3acca7eed4f90a33f43b624b4a49d09a75160e.tar.xz
gsoc2013-epiphany-bc3acca7eed4f90a33f43b624b4a49d09a75160e.tar.zst
gsoc2013-epiphany-bc3acca7eed4f90a33f43b624b4a49d09a75160e.zip
Add epiphany.h. Only allow including epiphany.h; all other headers are private
svn path=/trunk/; revision=8211
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index c3cd5a16d..eab56e942 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -133,6 +133,7 @@ ephy-lib-type-builtins.c: stamp-ephy-lib-type-builtins.c Makefile
@true
stamp-ephy-lib-type-builtins.c: Makefile $(TYPES_H_FILES)
$(GLIB_MKENUMS) \
+ --fhead "#include <config.h>\n\n" \
--fhead "#include \"ephy-lib-type-builtins.h\"\n\n" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--fprod "\n#include \"@filename@\"" \
@@ -153,6 +154,9 @@ ephy-lib-type-builtins.h: stamp-ephy-lib-type-builtins.h Makefile
@true
stamp-ephy-lib-type-builtins.h: Makefile $(TYPES_H_FILES)
$(GLIB_MKENUMS) \
+ --fhead "#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION)\n" \
+ --fhead "#error Only <epiphany/epiphany.h> can be included directly.\n" \
+ --fhead "#endif\n\n" \
--fhead "#ifndef EPHY_LIB_TYPE_BUILTINS_H\n" \
--fhead "#define EPHY_LIB_TYPE_BUILTINS_H 1\n\n" \
--fhead "#include <glib-object.h>\n\n" \