Commit b8874d1d authored by Vincent Untz's avatar Vincent Untz

build: Update all Makefile.am to more recent standards

parent 7060e3c4
NULL =
SUBDIRS = libmenu desktop-directories layout util po
if HAVE_PYTHON
PYTHON_SUBDIRS = python simple-editor
SUBDIRS += python simple-editor
endif
ALL_SUBDIRS = \
po \
libmenu \
layout \
desktop-directories \
util \
$(NULL)
SUBDIRS = $(ALL_SUBDIRS) $(PYTHON_SUBDIRS)
DIST_SUBDIRS = $(ALL_SUBDIRS) python simple-editor
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-python
EXTRA_DIST = \
HACKING \
MAINTAINERS \
$(NULL)
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
MAINTAINERS
MAINTAINERCLEANFILES = \
$(srcdir)/INSTALL \
......@@ -38,6 +26,11 @@ MAINTAINERCLEANFILES = \
$(srcdir)/py-compile \
`find "$(srcdir)" -type f -name Makefile.in -print` \
$(srcdir)/configure \
$(srcdir)/m4/intltool.m4
$(srcdir)/m4/intltool.m4 \
$(srcdir)/m4/libtool.m4 \
$(srcdir)/m4/ltoptions.m4 \
$(srcdir)/m4/ltsugar.m4 \
$(srcdir)/m4/ltversion.m4 \
$(srcdir)/m4/lt~obsolete.m4
-include $(top_srcdir)/git.mk
NULL =
@INTLTOOL_DIRECTORY_RULE@
directorydir = $(datadir)/desktop-directories
# Should be moved to gnome-control-center:
directory_in_controlcenterfiles = \
Hardware.directory.in \
InternetAndNetwork.directory.in \
LookAndFeel.directory.in \
Personal.directory.in \
System.directory.in \
$(NULL)
System.directory.in
directory_in_files = \
AudioVideo.directory.in \
Development.directory.in \
......@@ -26,11 +24,12 @@ directory_in_files = \
X-GNOME-Other.directory.in \
X-GNOME-Menu-Applications.directory.in \
X-GNOME-Menu-System.directory.in \
$(directory_in_controlcenterfiles) \
$(NULL)
$(directory_in_controlcenterfiles)
directory_DATA = $(directory_in_files:.directory.in=.directory)
@INTLTOOL_DIRECTORY_RULE@
EXTRA_DIST= $(directory_in_files)
DISTCLEANFILES = $(directory_DATA)
......
NULL =
menudir = $(sysconfdir)/xdg/menus
menu_DATA = \
applications.menu \
settings.menu \
$(NULL)
menu_DATA = \
applications.menu \
settings.menu
EXTRA_DIST= $(menu_DATA)
......
NULL =
lib_LTLIBRARIES = libgnome-menu.la
INCLUDES = \
-DGMENU_I_KNOW_THIS_IS_UNSTABLE \
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \
-DGMENU_I_KNOW_THIS_IS_UNSTABLE \
$(DISABLE_DEPRECATED_CFLAGS) \
$(DEBUG_CFLAGS) \
$(WARN_CFLAGS) \
$(NULL)
$(DEBUG_CFLAGS)
lib_LTLIBRARIES = libgnome-menu.la
AM_CFLAGS = $(WARN_CFLAGS)
libgnome_menu_includedir = $(includedir)/gnome-menus
libgnome_menu_include_HEADERS = \
gmenu-tree.h
libgnome_menu_sources = \
canonicalize.c \
......@@ -17,8 +19,7 @@ libgnome_menu_sources = \
gmenu-tree.c \
menu-layout.c \
menu-monitor.c \
menu-util.c \
$(NULL)
menu-util.c
libgnome_menu_la_SOURCES = \
$(libgnome_menu_sources) \
......@@ -28,59 +29,46 @@ libgnome_menu_la_SOURCES = \
gmenu-tree.h \
menu-layout.h \
menu-monitor.h \
menu-util.h \
$(NULL)
menu-util.h
libgnome_menu_la_LIBADD = \
$(GLIB_LIBS) \
$(MONITOR_LIBS) \
$(NULL)
$(GLIB_LIBS)
libgnome_menu_la_LDFLAGS = \
-version-info $(LIB_MENU_LT_VERSION) \
-no-undefined \
-export-symbols-regex gmenu_tree \
$(NULL)
-export-symbols-regex gmenu_tree
libgnome_menu_includedir = $(includedir)/gnome-menus
libgnome_menu_include_HEADERS = \
gmenu-tree.h \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgnome-menu.pc
EXTRA_DIST = \
libgnome-menu.pc.in \
libgnome-menu-uninstalled.pc.in \
$(NULL)
CLEANFILES = \
$(NULL)
libgnome-menu.pc.in \
libgnome-menu-uninstalled.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgnome-menu.pc
CLEANFILES =
# Introspection
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
if HAVE_INTROSPECTION
# Note: we only include the headers here so far because there's no gtk-doc at all anyway
introspection_sources = $(libgnome_menu_include_HEADERS)
GMenu-2.0.gir: libgnome-menu.la Makefile
GMenu-2.0.gir: libgnome-menu.la
GMenu_2_0_gir_INCLUDES = GObject-2.0
GMenu_2_0_gir_CFLAGS = \
-DGMENU_I_KNOW_THIS_IS_UNSTABLE \
$(GLIB_CFLAGS)
GMenu_2_0_gir_CFLAGS = $(AM_CPPFLAGS)
GMenu_2_0_gir_LIBS = libgnome-menu.la
GMenu_2_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
INTROSPECTION_GIRS += GMenu-2.0.gir
girdir = $(datadir)/gir-1.0
girdir = $(INTROSPECTION_GIRDIR)
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelibdir = $(INTROSPECTION_TYPELIBDIR)
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
......
NULL =
INCLUDES = \
-DGMENU_I_KNOW_THIS_IS_UNSTABLE \
-I$(srcdir)/../libmenu \
$(WARN_CFLAGS) \
$(NO_STRICT_ALIASING_CFLAGS) \
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(PYTHON_INCLUDES) \
-I$(srcdir)/../libmenu \
-DGMENU_I_KNOW_THIS_IS_UNSTABLE \
$(DISABLE_DEPRECATED_CFLAGS) \
$(DEBUG_CFLAGS) \
$(NULL)
$(DEBUG_CFLAGS)
AM_CFLAGS =
$(WARN_CFLAGS) \
$(NO_STRICT_ALIASING_CFLAGS)
gmenudir = $(pyexecdir)
gmenu_LTLIBRARIES = gmenu.la
gmenu_la_LDFLAGS = -module -avoid-version -fPIC -export-symbols-regex initgmenu
gmenu_la_LIBADD = $(GLIB_LIBS) $(PYTHON_LIBS) $(top_builddir)/libmenu/libgnome-menu.la
gmenu_la_SOURCES = gmenu.c
gmenu_la_LDFLAGS = -module -avoid-version -fPIC -export-symbols-regex initgmenu
gmenu_la_LIBADD = $(GLIB_LIBS) $(PYTHON_LIBS) $(top_builddir)/libmenu/libgnome-menu.la
-include $(top_srcdir)/git.mk
appdir = $(pyexecdir)/GMenuSimpleEditor
appdir = $(pyexecdir)/GMenuSimpleEditor
app_PYTHON = \
__init__.py \
main.py \
......@@ -8,11 +8,6 @@ app_PYTHON = \
nodist_app_PYTHON = config.py
CLEANFILES = config.py
EXTRA_DIST = config.py.in
all-local: config.py
config.py: config.py.in
$(AM_V_GEN)sed \
-e s!\@DATADIR\@!$(datadir)! \
......@@ -21,4 +16,8 @@ config.py: config.py.in
-e s!\@PACKAGE_VERSION\@!$(PACKAGE_VERSION)! \
< $< > $@
EXTRA_DIST = config.py.in
CLEANFILES = config.py
-include $(top_srcdir)/git.mk
......@@ -6,7 +6,7 @@ gmenu-simple-editor: gmenu-simple-editor.in
$(AM_V_GEN)sed -e s!\@pyexecdir\@!@pyexecdir@! -e s!\@PYTHON\@!@PYTHON@! < $< > $@ && \
chmod a+x $@
uidir = $(pkgdatadir)/ui
uidir = $(pkgdatadir)/ui
ui_DATA = gmenu-simple-editor.ui
desktopdir = $(datadir)/applications
......@@ -17,11 +17,11 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
EXTRA_DIST = \
gmenu-simple-editor.in \
gmenu-simple-editor.desktop.in \
gmenu-simple-editor.ui
$(desktop_in_files) \
$(ui_DATA)
CLEANFILES = \
gmenu-simple-editor \
gmenu-simple-editor.desktop
$(desktop_DATA)
-include $(top_srcdir)/git.mk
NULL =
noinst_PROGRAMS = gnome-menu-spec-test
INCLUDES = \
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \
-I$(srcdir)/../libmenu \
-DGMENU_I_KNOW_THIS_IS_UNSTABLE \
-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-I$(srcdir)/../libmenu \
$(GLIB_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS) \
$(DEBUG_CFLAGS) \
$(WARN_CFLAGS) \
$(NULL)
$(DEBUG_CFLAGS)
noinst_PROGRAMS = \
gnome-menu-spec-test \
$(NULL)
AM_CFLAGS = $(WARN_CFLAGS)
gnome_menu_spec_test_SOURCES = \
test-menu-spec.c \
$(NULL)
test-menu-spec.c
gnome_menu_spec_test_LDADD = \
../libmenu/libgnome-menu.la \
$(GLIB_LIBS) \
$(NULL)
../libmenu/libgnome-menu.la
if HAVE_PYTHON
pyexampledir = $(pkgdatadir)/examples
pyexampledir = $(pkgdatadir)/examples
pyexample_DATA = gnome-menus-ls.py
else
pyexampledir =
pyexampledir =
pyexample_DATA =
endif
......
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