From a8aa5ea02952bb824f295d8c5dbe469c8931d525 Mon Sep 17 00:00:00 2001 From: "Gergely POLONKAI (W00d5t0ck)" Date: Tue, 10 Sep 2013 19:31:45 +0200 Subject: [PATCH 1/3] Moved pkgconfig data file to data/ --- Makefile.am | 3 --- configure.ac | 2 +- data/Makefile.am | 3 +++ swe-glib.pc.in => data/swe-glib.pc.in | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename swe-glib.pc.in => data/swe-glib.pc.in (100%) diff --git a/Makefile.am b/Makefile.am index 3642570..781da78 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,9 +3,6 @@ SUBDIRS = swe/src src docs/reference/swe-glib data DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = swe-glib.pc $(NULL) - headerdir = $(includedir)/swe-glib header_DATA = \ src/swe-glib.h \ diff --git a/configure.ac b/configure.ac index 9853f17..8cd35a9 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,6 @@ AC_CONFIG_FILES([ data/Makefile po/Makefile.in docs/reference/swe-glib/Makefile - swe-glib.pc + data/swe-glib.pc ]) AC_OUTPUT diff --git a/data/Makefile.am b/data/Makefile.am index c78fff2..dc3cc1e 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,3 +1,6 @@ +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = swe-glib.pc $(NULL) + swephdir = $(pkgdatadir) sweph_DATA = \ sweph-data/seas_00.se1 \ diff --git a/swe-glib.pc.in b/data/swe-glib.pc.in similarity index 100% rename from swe-glib.pc.in rename to data/swe-glib.pc.in From a43dc653e55994b05bbba7625d1352b0f0d5f6a5 Mon Sep 17 00:00:00 2001 From: "Gergely POLONKAI (W00d5t0ck)" Date: Tue, 10 Sep 2013 19:33:35 +0200 Subject: [PATCH 2/3] Moved header install target to src/Makefile.am for consistency --- Makefile.am | 9 --------- src/Makefile.am | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index 781da78..05d1ab7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,15 +3,6 @@ SUBDIRS = swe/src src docs/reference/swe-glib data DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc -headerdir = $(includedir)/swe-glib -header_DATA = \ - src/swe-glib.h \ - src/gswe-types.h \ - src/gswe-enumtypes.h \ - src/gswe-moment.h \ - src/gswe-timestamp.h \ - $(NULL) - intltool_extra = intltool-extract.in intltool-merge.in intltool-update.in EXTRA_DIST = $(intltool_extra) $(header_DATA) autogen.sh diff --git a/src/Makefile.am b/src/Makefile.am index 15c900f..de161b1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -50,6 +50,16 @@ gir_DATA = SweGlib-$(SWE_GLIB_API_VERSION).gir typelibsdir = $(libdir)/girepository-1.0 typelibs_DATA = SweGlib-$(SWE_GLIB_API_VERSION).typelib +headerdir = $(includedir)/swe-glib +header_DATA = \ + swe-glib.h \ + gswe-types.h \ + gswe-enumtypes.h \ + gswe-moment.h \ + gswe-timestamp.h \ + $(NULL) + + CLEANFILES += $(gir_DATA) $(typelibs_DATA) endif From c413810e6437fc5476127272e4bde820f71b83ff Mon Sep 17 00:00:00 2001 From: "Gergely POLONKAI (W00d5t0ck)" Date: Tue, 10 Sep 2013 19:39:39 +0200 Subject: [PATCH 3/3] Removed unneeded variable from src/Makefile.am --- src/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index de161b1..7208674 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,10 +11,14 @@ INST_H_SRC_FILES = \ INST_H_BUILT_FILES = \ gswe-enumtypes.h -libswe_glib_sources = swe-glib.c gswe-moment.c gswe-timestamp.c gswe-enumtypes.c gswe_headers = gswe-timestamp.h gswe-types.h -libswe_glib_1_0_la_SOURCES = $(libswe_glib_sources) +libswe_glib_1_0_la_SOURCES = \ + swe-glib.c \ + gswe-moment.c \ + gswe-timestamp.c \ + gswe-enumtypes.c \ + $(NULL) libswe_glib_1_0_la_CFLAGS = $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) -Wall libswe_glib_1_0_la_LIBADD = $(GLIB_LIBS) $(GOBJECT_LIBS) $(LIBSWE_LIBS)