summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2012-03-05 11:07:48 -0800
committerChase Douglas <chase.douglas@canonical.com>2012-03-06 09:05:55 -0800
commit63a2903a15d53a19930b72ffda06b92492718e6c (patch)
tree633594262bcfdae01bdc174556facff54e82714a
parent20827807711933b0083458c968aa6bbc06db859f (diff)
Split data and include build rules out of src build rules
This will simplify things when we add more features to xorg-gtest. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac6
-rw-r--r--data/Makefile.am26
-rw-r--r--data/xorg/gtest/dummy.conf (renamed from conf/dummy.conf)0
-rw-r--r--include/Makefile.am29
-rw-r--r--src/Makefile.am8
6 files changed, 62 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index 7c86ac9..2542b44 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,7 +23,7 @@
# SOFTWARE.
#
-SUBDIRS = src doc examples
+SUBDIRS = data doc include src examples
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xorg-gtest.pc
@@ -45,4 +45,4 @@ doc:
dist-hook: ChangeLog INSTALL
-EXTRA_DIST = conf
+EXTRA_DIST = data
diff --git a/configure.ac b/configure.ac
index 715b667..40a0e70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,6 +45,10 @@ AC_CONFIG_FILES([Makefile
AC_SUBST(AM_CPPFLAGS, "-Wall -Werror")
-AC_CONFIG_FILES([doc/Makefile examples/Makefile src/Makefile])
+AC_CONFIG_FILES([data/Makefile
+ doc/Makefile
+ examples/Makefile
+ include/Makefile
+ src/Makefile])
AC_OUTPUT
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..bf74a73
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,26 @@
+#
+# Makefile for the src subdirectory of xorg-gtest
+#
+# Copyright (C) 2012 Canonical, Ltd.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#
+
+nobase_data_DATA = xorg/gtest/dummy.conf
diff --git a/conf/dummy.conf b/data/xorg/gtest/dummy.conf
index 5600991..5600991 100644
--- a/conf/dummy.conf
+++ b/data/xorg/gtest/dummy.conf
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644
index 0000000..14768c3
--- /dev/null
+++ b/include/Makefile.am
@@ -0,0 +1,29 @@
+#
+# Makefile for the src subdirectory of xorg-gtest
+#
+# Copyright (C) 2012 Canonical, Ltd.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#
+
+nobase_include_HEADERS = \
+ xorg/gtest/environment.h \
+ xorg/gtest/process.h \
+ xorg/gtest/test.h
diff --git a/src/Makefile.am b/src/Makefile.am
index cc4898b..06a5e12 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -41,14 +41,6 @@ libxorg_gtest_main_la_SOURCES = \
libxorg_gtest_main_la_LIBADD = libxorg-gtest.la
-library_includedir = $(includedir)/xorg/gtest
-library_include_HEADERS = \
- $(top_srcdir)/include/xorg/gtest/environment.h \
- $(top_srcdir)/include/xorg/gtest/process.h \
- $(top_srcdir)/include/xorg/gtest/test.h
-library_datadir = $(datadir)/xorg/gtest
-library_data_DATA = $(top_srcdir)/conf/dummy.conf
-
libxorg_gtest_main_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(GTEST_CPPFLAGS)