build: drop the include/ directory
authorRan Benita <ran234@gmail.com>
Sun, 22 Jul 2012 21:41:27 +0000 (00:41 +0300)
committerRan Benita <ran234@gmail.com>
Sun, 22 Jul 2012 21:45:34 +0000 (00:45 +0300)
The include/ dir is somewhat redundant and makes it just a bit harder to
handle the -I directives from out side of automake; without it the
default $(top_buildir) just works.
Here's also some further justifications I found:
http://smcv.pseudorandom.co.uk/2008/09/pc-uninstalled/

Signed-off-by: Ran Benita <ran234@gmail.com>
Makefile.am
makekeys/Makefile.am
xkbcommon-uninstalled.pc.in
xkbcommon/xkbcommon-keysyms.h [moved from include/xkbcommon/xkbcommon-keysyms.h with 100% similarity]
xkbcommon/xkbcommon-names.h [moved from include/xkbcommon/xkbcommon-names.h with 100% similarity]
xkbcommon/xkbcommon.h [moved from include/xkbcommon/xkbcommon.h with 100% similarity]

index d5ead73..ca715fe 100644 (file)
@@ -19,7 +19,6 @@ dist-hook: ChangeLog INSTALL
 
 AM_CPPFLAGS = \
        -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
-       -I$(top_srcdir)/include \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/xkbcomp \
        -I$(top_builddir)/src/xkbcomp \
@@ -33,9 +32,9 @@ AM_YFLAGS = -d
 
 xkbcommonincludedir = $(includedir)/xkbcommon
 xkbcommoninclude_HEADERS = \
-       include/xkbcommon/xkbcommon.h \
-       include/xkbcommon/xkbcommon-names.h \
-       include/xkbcommon/xkbcommon-keysyms.h
+       xkbcommon/xkbcommon.h \
+       xkbcommon/xkbcommon-names.h \
+       xkbcommon/xkbcommon-keysyms.h
 
 lib_LTLIBRARIES = libxkbcommon.la
 libxkbcommon_la_LDFLAGS = -no-undefined
@@ -92,7 +91,7 @@ src/xkbcomp/parser.h: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xk
 src/xkbcomp/scanner.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
 
 src/ks_tables.h: $(top_builddir)/makekeys/makekeys$(EXEEXT)
-       $(AM_V_GEN)$(top_builddir)/makekeys/makekeys $(top_srcdir)/include/xkbcommon/xkbcommon-keysyms.h > $@
+       $(AM_V_GEN)$(top_builddir)/makekeys/makekeys $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h > $@
 
 $(top_builddir)/makekeys/makekeys$(EXEEXT): $(top_srcdir)/makekeys/makekeys.c
        $(MAKE) -C makekeys
@@ -153,4 +152,4 @@ KEYSYMDEFS = \
         $(X11_INCLUDEDIR)/DECkeysym.h \
         $(X11_INCLUDEDIR)/HPkeysym.h
 update-keysyms:
-       sed -e '/XK_Ydiaeresis\s*0x100000ee/d; /#define _/d; s/#define\s*\(\w*\)XK_/#define XKB_KEY_\1/; /\(#ifdef\|#ifndef\|#endif\)/d' $(KEYSYMDEFS) > include/xkbcommon/xkbcommon-keysyms.h
+       sed -e '/XK_Ydiaeresis\s*0x100000ee/d; /#define _/d; s/#define\s*\(\w*\)XK_/#define XKB_KEY_\1/; /\(#ifdef\|#ifndef\|#endif\)/d' $(KEYSYMDEFS) > xkbcommon/xkbcommon-keysyms.h
index bb93777..3c0aadb 100644 (file)
@@ -1,5 +1,4 @@
-AM_CPPFLAGS = -I$(top_srcdir)/include
-AM_CFLAGS = $(X11_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(BASE_CFLAGS)
 
 # need to use build-native compiler
 
index ca116d2..d4d6a2b 100644 (file)
@@ -1,5 +1,5 @@
 libdir=@abs_top_builddir@/.libs
-includedir=@abs_top_srcdir@/include
+includedir=@abs_top_srcdir@
 
 Name: xkbcommon
 Description: XKB API common to servers and clients (uninstalled)