Commit c04b1ce6 authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Ting-Wei Lan

Use non-recursive Makefiles if possible

parent ebfe1f91
# vim: set sw=8 ts=8 sts=8 noet:
NULL =
# Global options
ACLOCAL_AMFLAGS = -I m4
NULL =
EXTRA_DIST =
BUILT_SOURCES =
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
SUBDIRS = gnome-autoar data tests docs
# Top-level directory
EXTRA_DIST += autogen.sh
EXTRA_DISTS = \
autogen.sh \
# Directory: gnome-autoar
EXTRA_DIST += \
gnome-autoar/autoar-enum-types.h.template \
gnome-autoar/autoar-enum-types.c.template \
gnome-autoar/gnome-autoar.pc.in \
$(NULL)
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
lib_LTLIBRARIES = gnome-autoar/libgnome-autoar.la
libgnome_autoar_la_headers = \
gnome-autoar/autoar-common.h \
gnome-autoar/autoar-create.h \
gnome-autoar/autoar-extract.h \
gnome-autoar/autoar-format-filter.h \
gnome-autoar/autoar-gtk.h \
gnome-autoar/autoar-pref.h \
$(NULL)
libgnome_autoar_la_sources = \
gnome-autoar/autoar-common.c \
gnome-autoar/autoar-create.c \
gnome-autoar/autoar-extract.c \
gnome-autoar/autoar-format-filter.c \
gnome-autoar/autoar-gtk.c \
gnome-autoar/autoar-pref.c \
$(NULL)
libgnome_autoar_la_generated_files = \
gnome-autoar/autoar-enum-types.h \
gnome-autoar/autoar-enum-types.c \
$(NULL)
BUILT_SOURCES += \
$(libgnome_autoar_la_generated_files) \
$(NULL)
autoarincludedir = $(includedir)/gnome-autoar
autoarinclude_HEADERS = \
gnome-autoar/autoar.h \
$(libgnome_autoar_la_headers) \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gnome-autoar/gnome-autoar.pc
gnome_autoar_libgnome_autoar_la_SOURCES = \
$(libgnome_autoar_la_generated_files) \
$(libgnome_autoar_la_headers) \
$(libgnome_autoar_la_sources) \
$(NULL)
gnome_autoar_libgnome_autoar_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(NULL)
gnome_autoar_libgnome_autoar_la_CFLAGS = \
$(DEPENDENCIES_CFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir)/gnome-autoar \
$(AM_CFLAGS) \
$(NULL)
gnome-autoar/autoar-enum-types.h: gnome-autoar/autoar-enum-types.h.template $(libgnome_autoar_la_headers)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template gnome-autoar/autoar-enum-types.h.template $(libgnome_autoar_la_headers) ) > $@
gnome-autoar/autoar-enum-types.c: gnome-autoar/autoar-enum-types.c.template $(libgnome_autoar_la_headers)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template gnome-autoar/autoar-enum-types.c.template $(libgnome_autoar_la_headers) ) > $@
# Directory: data
gsettings_ENUM_NAMESPACE = org.gnome.desktop.archives
gsettings_ENUM_FILES = $(top_srcdir)/gnome-autoar/autoar-format-filter.h
gsettings_SCHEMAS = data/org.gnome.desktop.archives.gschema.xml
EXTRA_DIST += $(gsettings_SCHEMAS)
@GSETTINGS_RULES@
# Directory: tests
noinst_PROGRAMS = \
tests/test-extract \
tests/test-pref \
tests/test-create \
tests/test-ui \
$(NULL)
test_cflags = \
$(DEPENDENCIES_CFLAGS) \
-I$(top_srcdir) \
$(AM_CFLAGS) \
$(NULL)
test_libs = \
$(top_builddir)/gnome-autoar/libgnome-autoar.la \
$(DEPENDENCIES_LIBS) \
$(NULL)
tests_test_extract_SOURCES = tests/test-extract.c
tests_test_extract_CFLAGS = $(test_cflags)
tests_test_extract_LDADD = $(test_libs)
tests_test_pref_SOURCES = tests/test-pref.c
tests_test_pref_CFLAGS = $(test_cflags)
tests_test_pref_LDADD = $(test_libs)
tests_test_create_SOURCES = tests/test-create.c
tests_test_create_CFLAGS = $(test_cflags)
tests_test_create_LDADD = $(test_libs)
tests_test_ui_SOURCES = tests/test-ui.c
tests_test_ui_CFLAGS = $(test_cflags)
tests_test_ui_LDADD = $(test_libs)
CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = $(BUILT_SOURCES)
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
SUBDIRS = . docs
......@@ -9,7 +9,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([gnome-autoar/autoar.h])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign dist-xz no-dist-gzip tar-ustar])
AM_INIT_AUTOMAKE([1.11 foreign dist-xz no-dist-gzip tar-ustar subdir-objects])
AM_MAINTAINER_MODE([enable])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
......@@ -59,12 +59,9 @@ AC_C_INLINE
AC_CHECK_FUNCS([getgrnam getpwnam link mkfifo mknod stat])
AC_CONFIG_FILES([Makefile
gnome-autoar/Makefile
gnome-autoar/gnome-autoar.pc
data/Makefile
tests/Makefile
docs/Makefile
docs/reference/Makefile])
docs/reference/Makefile
gnome-autoar/gnome-autoar.pc])
AC_OUTPUT
echo "
......
# vim: set sw=8 ts=8 sts=8 noet:
NULL =
EXTRA_DIST = org.gnome.desktop.archives.gschema.xml
gsettings_ENUM_NAMESPACE = org.gnome.desktop.archives
gsettings_ENUM_FILES = $(top_srcdir)/gnome-autoar/autoar-format-filter.h
gsettings_SCHEMAS = org.gnome.desktop.archives.gschema.xml
@GSETTINGS_RULES@
# vim: set sw=8 ts=8 sts=8 noet:
NULL =
EXTRA_DIST = \
autoar-enum-types.h.template \
autoar-enum-types.c.template \
gnome-autoar.pc.in \
$(NULL)
lib_LTLIBRARIES = libgnome-autoar.la
libgnome_autoar_h_sources = \
autoar-common.h \
autoar-create.h \
autoar-extract.h \
autoar-format-filter.h \
autoar-gtk.h \
autoar-pref.h \
$(NULL)
libgnome_autoar_c_sources = \
autoar-common.c \
autoar-create.c \
autoar-extract.c \
autoar-format-filter.c \
autoar-gtk.c \
autoar-pref.c \
$(NULL)
libgnome_autoar_generated_sources = \
autoar-enum-types.h \
autoar-enum-types.c \
$(NULL)
headerincludedir = $(includedir)/gnome-autoar
headerinclude_HEADERS = \
autoar.h \
$(libgnome_autoar_h_sources) \
$(NULL)
libgnome_autoar_la_SOURCES = \
$(libgnome_autoar_generated_sources) \
$(libgnome_autoar_h_sources) \
$(libgnome_autoar_c_sources) \
$(NULL)
libgnome_autoar_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(NULL)
libgnome_autoar_la_CFLAGS = \
$(DEPENDENCIES_CFLAGS) \
-I$(top_srcdir) \
$(AM_CFLAGS) \
$(NULL)
autoar-enum-types.h: autoar-enum-types.h.template $(libgnome_autoar_h_sources) $(GLIB_MKENUMS)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template autoar-enum-types.h.template $(libgnome_autoar_h_sources)) > $@
autoar-enum-types.c: autoar-enum-types.c.template $(libgnome_autoar_h_sources) $(GLIB_MKENUMS)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template autoar-enum-types.c.template $(libgnome_autoar_h_sources)) > $@
BUILT_SOURCES = \
$(libgnome_autoar_generated_sources) \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gnome-autoar.pc
CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = $(BUILT_SOURCES)
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
# vim: set sw=8 ts=8 sts=8 noet:
NULL =
noinst_PROGRAMS = test-extract test-pref test-create test-ui
test_cflags = \
$(DEPENDENCIES_CFLAGS) \
-I$(top_srcdir) \
$(AM_CFLAGS) \
$(NULL)
test_libs = \
$(top_builddir)/gnome-autoar/libgnome-autoar.la \
$(DEPENDENCIES_LIBS) \
$(NULL)
test_extract_SOURCES = test-extract.c
test_extract_CFLAGS = $(test_cflags)
test_extract_LDADD = $(test_libs)
test_pref_SOURCES = test-pref.c
test_pref_CFLAGS = $(test_cflags)
test_pref_LDADD = $(test_libs)
test_create_SOURCES = test-create.c
test_create_CFLAGS = $(test_cflags)
test_create_LDADD = $(test_libs)
test_ui_SOURCES = test-ui.c
test_ui_CFLAGS = $(test_cflags)
test_ui_LDADD = $(test_libs)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment