[Xfce4-commits] <xfdesktop:master> Refactor the makefile, introduce xfdesktop_built_sources.
Jannis Pohlmann
noreply at xfce.org
Tue Nov 2 01:14:02 CET 2010
Updating branch refs/heads/master
to ab94a214ff2fc29d79fbe6c747202f3174f2cdcc (commit)
from 54aff87c5587b870d06c767af36fd53b281a5333 (commit)
commit ab94a214ff2fc29d79fbe6c747202f3174f2cdcc
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Sun Oct 17 14:46:27 2010 +0200
Refactor the makefile, introduce xfdesktop_built_sources.
src/Makefile.am | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index f408e35..9f8fc3d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,15 @@
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
+
bin_PROGRAMS = xfdesktop
+xfdesktop_built_sources = \
+ xfce-desktop-enum-types.c \
+ xfce-desktop-enum-types.h \
+ xfdesktop-marshal.c \
+ xfdesktop-marshal.h
+
xfdesktop_SOURCES = \
+ $(xfdesktop_built_sources) \
main.c \
menu.c \
menu.h \
@@ -9,11 +18,7 @@ xfdesktop_SOURCES = \
xfce-backdrop.c \
xfce-backdrop.h \
xfce-desktop.c \
- xfce-desktop.h \
- xfce-desktop-enum-types.c \
- xfce-desktop-enum-types.h \
- xfdesktop-marshal.c \
- xfdesktop-marshal.h
+ xfce-desktop.h
desktop_icon_sources = \
xfdesktop-icon.c \
@@ -135,13 +140,12 @@ endif
if MAINTAINER_MODE
BUILT_SOURCES = \
- xfdesktop-marshal.c \
- xfdesktop-marshal.h \
- stamp-xfce-desktop-enum-types.h \
- xfce-desktop-enum-types.c \
- xfce-desktop-enum-types.h
+ $(xfdesktop_built_sources)
-DISTCLEANFILES = $(BUILT_SOURCES)
+DISTCLEANFILES = \
+ $(xfdesktop_built_sources) \
+ stamp-xfdesktop-marshal.h \
+ stamp-xfce-desktop-enum-types.h
xfdesktop-marshal.h: stamp-xfdesktop-marshal.h
@true
@@ -182,10 +186,7 @@ xfce-desktop-enum-types.c: $(enum_headers) Makefile
if ENABLE_FILE_ICONS
-BUILT_SOURCES += \
- xfdesktop-dbus-bindings-filemanager.h \
- xfdesktop-dbus-bindings-trash.h
-DISTCLEANFILES += \
+xfdesktop_built_sources += \
xfdesktop-dbus-bindings-filemanager.h \
xfdesktop-dbus-bindings-trash.h
More information about the Xfce4-commits
mailing list