Makefile: Use $(NULL) trick
This helps make the Makefile look nicer and prevent merge conflicts.
This commit is contained in:
parent
681cf95236
commit
f8a4d450a5
@ -6,6 +6,7 @@ lib_LTLIBRARIES = libmutter.la
|
|||||||
SUBDIRS=compositor/plugins
|
SUBDIRS=compositor/plugins
|
||||||
|
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
|
NULL =
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-DCLUTTER_ENABLE_COMPOSITOR_API \
|
-DCLUTTER_ENABLE_COMPOSITOR_API \
|
||||||
@ -31,26 +32,30 @@ AM_CPPFLAGS = \
|
|||||||
-DMUTTER_PKGLIBDIR=\"$(pkglibdir)\" \
|
-DMUTTER_PKGLIBDIR=\"$(pkglibdir)\" \
|
||||||
-DMUTTER_PLUGIN_DIR=\"$(MUTTER_PLUGIN_DIR)\" \
|
-DMUTTER_PLUGIN_DIR=\"$(MUTTER_PLUGIN_DIR)\" \
|
||||||
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
|
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
|
||||||
-DXWAYLAND_PATH=\"$(XWAYLAND_PATH)\"
|
-DXWAYLAND_PATH=\"$(XWAYLAND_PATH)\" \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
mutter_built_sources = \
|
mutter_built_sources = \
|
||||||
$(dbus_idle_built_sources) \
|
$(dbus_idle_built_sources) \
|
||||||
$(dbus_display_config_built_sources) \
|
$(dbus_display_config_built_sources) \
|
||||||
$(dbus_login1_built_sources) \
|
$(dbus_login1_built_sources) \
|
||||||
mutter-enum-types.h \
|
mutter-enum-types.h \
|
||||||
mutter-enum-types.c
|
mutter-enum-types.c \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
if HAVE_WAYLAND
|
if HAVE_WAYLAND
|
||||||
mutter_built_sources += \
|
mutter_built_sources += \
|
||||||
gtk-shell-protocol.c \
|
gtk-shell-protocol.c \
|
||||||
gtk-shell-server-protocol.h \
|
gtk-shell-server-protocol.h \
|
||||||
xdg-shell-protocol.c \
|
xdg-shell-protocol.c \
|
||||||
xdg-shell-server-protocol.h
|
xdg-shell-server-protocol.h \
|
||||||
|
$(NULL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
wayland_protocols = \
|
wayland_protocols = \
|
||||||
wayland/protocol/gtk-shell.xml \
|
wayland/protocol/gtk-shell.xml \
|
||||||
wayland/protocol/xdg-shell.xml
|
wayland/protocol/xdg-shell.xml \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
libmutter_la_SOURCES = \
|
libmutter_la_SOURCES = \
|
||||||
backends/meta-backend.c \
|
backends/meta-backend.c \
|
||||||
@ -220,7 +225,8 @@ libmutter_la_SOURCES = \
|
|||||||
x11/window-x11-private.h \
|
x11/window-x11-private.h \
|
||||||
x11/xprops.c \
|
x11/xprops.c \
|
||||||
x11/xprops.h \
|
x11/xprops.h \
|
||||||
x11/mutter-Xatomtype.h
|
x11/mutter-Xatomtype.h \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
if HAVE_WAYLAND
|
if HAVE_WAYLAND
|
||||||
libmutter_la_SOURCES += \
|
libmutter_la_SOURCES += \
|
||||||
@ -253,7 +259,8 @@ libmutter_la_SOURCES += \
|
|||||||
wayland/meta-wayland-outputs.c \
|
wayland/meta-wayland-outputs.c \
|
||||||
wayland/meta-wayland-outputs.h \
|
wayland/meta-wayland-outputs.h \
|
||||||
wayland/window-wayland.c \
|
wayland/window-wayland.c \
|
||||||
wayland/window-wayland.h
|
wayland/window-wayland.h \
|
||||||
|
$(NULL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_NATIVE_BACKEND
|
if HAVE_NATIVE_BACKEND
|
||||||
@ -269,11 +276,11 @@ libmutter_la_SOURCES += \
|
|||||||
backends/native/meta-launcher.c \
|
backends/native/meta-launcher.c \
|
||||||
backends/native/meta-launcher.h \
|
backends/native/meta-launcher.h \
|
||||||
backends/native/dbus-utils.c \
|
backends/native/dbus-utils.c \
|
||||||
backends/native/dbus-utils.h
|
backends/native/dbus-utils.h \
|
||||||
|
$(NULL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
nodist_libmutter_la_SOURCES = \
|
nodist_libmutter_la_SOURCES = $(mutter_built_sources)
|
||||||
$(mutter_built_sources)
|
|
||||||
|
|
||||||
libmutter_la_LDFLAGS = -no-undefined
|
libmutter_la_LDFLAGS = -no-undefined
|
||||||
libmutter_la_LIBADD = $(MUTTER_LIBS) $(MUTTER_NATIVE_BACKEND_LIBS)
|
libmutter_la_LIBADD = $(MUTTER_LIBS) $(MUTTER_NATIVE_BACKEND_LIBS)
|
||||||
@ -308,7 +315,8 @@ libmutterinclude_headers = \
|
|||||||
meta/types.h \
|
meta/types.h \
|
||||||
meta/util.h \
|
meta/util.h \
|
||||||
meta/window.h \
|
meta/window.h \
|
||||||
meta/workspace.h
|
meta/workspace.h \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
libmutterinclude_built_headers = \
|
libmutterinclude_built_headers = \
|
||||||
meta/meta-version.h
|
meta/meta-version.h
|
||||||
@ -396,7 +404,8 @@ EXTRA_DIST += \
|
|||||||
mutter-enum-types.c.in \
|
mutter-enum-types.c.in \
|
||||||
org.freedesktop.login1.xml \
|
org.freedesktop.login1.xml \
|
||||||
org.gnome.Mutter.DisplayConfig.xml \
|
org.gnome.Mutter.DisplayConfig.xml \
|
||||||
org.gnome.Mutter.IdleMonitor.xml
|
org.gnome.Mutter.IdleMonitor.xml \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
BUILT_SOURCES = \
|
BUILT_SOURCES = \
|
||||||
$(mutter_built_sources) \
|
$(mutter_built_sources) \
|
||||||
|
Loading…
Reference in New Issue
Block a user