summaryrefslogtreecommitdiff
path: root/savers/Makefile.am
blob: ca807574d35111013c15e3c26a2ab296682d779d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
## We require new-style dependency handling.
AUTOMAKE_OPTIONS = 1.7

NULL =

AM_CPPFLAGS =							\
	-I.							\
	-I$(srcdir)						\
	$(MATE_SCREENSAVER_SAVER_CFLAGS)			\
	$(DISABLE_DEPRECATED_CFLAGS)				\
	-DLIBEXECDIR=\""$(libexecdir)"\"			\
	-DMATELOCALEDIR=\""$(datadir)/locale"\"			\
	-DDATADIR=\""$(datadir)"\"				\
	$(WARN_CFLAGS)						\
	$(NULL)

DESKTOP_IN_IN_FILES = 			 \
	cosmos-slideshow.desktop.in.in 	 \
	footlogo-floaters.desktop.in.in	 \
	personal-slideshow.desktop.in.in \
	popsquares.desktop.in.in	 \
	$(NULL)

cosmos-slideshow.desktop.in: cosmos-slideshow.desktop.in.in Makefile
	$(edit) $< >$@
footlogo-floaters.desktop.in: footlogo-floaters.desktop.in.in Makefile
	$(edit) $< >$@
personal-slideshow.desktop.in: personal-slideshow.desktop.in.in Makefile
	$(edit) $< >$@
popsquares.desktop.in: popsquares.desktop.in.in Makefile
	$(edit) $< >$@

@INTLTOOL_DESKTOP_RULE@

edit = sed \
	-e 's|@SLIDESHOW_COSMOS_DIR[@]|$(SLIDESHOW_COSMOS_DIR)|g' \
	-e 's|@FLOATERS_FOOT_LOGO_IMAGE[@]|$(FLOATERS_FOOT_LOGO_IMAGE)|g' \
	-e 's|@SAVERDIR[@]|$(privlibexecdir)|g'

themesdir = $(datadir)/applications/screensavers
themes_in_files = 			\
	cosmos-slideshow.desktop.in	\
	footlogo-floaters.desktop.in    \
	personal-slideshow.desktop.in	\
	popsquares.desktop.in		\
	$(NULL)
themes_DATA = $(themes_in_files:.desktop.in=.desktop)

BUILT_SOURCES = 			\
	gs-theme-engine-marshal.c	\
	gs-theme-engine-marshal.h	\
	$(NULL)

gs-theme-engine-marshal.c: gs-theme-engine-marshal.list
	echo "#include \"gs-theme-engine-marshal.h\"" > $@ && \
	@GLIB_GENMARSHAL@ $< --prefix=gs_theme_engine_marshal --body >> $@

gs-theme-engine-marshal.h: gs-theme-engine-marshal.list
	@GLIB_GENMARSHAL@ $< --prefix=gs_theme_engine_marshal --header > $@

noinst_LIBRARIES =			\
	libgs-theme-engine.a

libgs_theme_engine_a_CPPFLAGS =					\
	-DDATADIR=\""$(datadir)"\"				\
	$(NULL)

libgs_theme_engine_a_SOURCES =		\
	$(BUILT_SOURCES)		\
	gs-theme-window.h		\
	gs-theme-window.c		\
	gs-theme-engine.c		\
	gs-theme-engine.h		\
	$(NULL)

saverdir = $(libexecdir)/mate-screensaver
saver_PROGRAMS = 	\
	floaters	\
	popsquares	\
	slideshow	\
	$(NULL)

floaters_SOURCES =	\
	floaters.c	\
	$(NULL)

floaters_LDADD =		       \
	libgs-theme-engine.a		\
	$(MATE_SCREENSAVER_SAVER_LIBS) \
	-lm                             \
	$(NULL)

popsquares_SOURCES = 		\
	gste-popsquares.c	\
	gste-popsquares.h	\
	popsquares.c		\
	$(NULL)

popsquares_LDADD =			\
	libgs-theme-engine.a 		\
	$(MATE_SCREENSAVER_SAVER_LIBS)	\
	$(NULL)

slideshow_SOURCES =   \
	gste-slideshow.c	\
	gste-slideshow.h	\
	xdg-user-dir-lookup.c	\
	xdg-user-dir-lookup.h	\
	slideshow.c		\
	$(NULL)

slideshow_LDADD =     \
	libgs-theme-engine.a 		\
	$(MATE_SCREENSAVER_SAVER_LIBS)	\
	$(NULL)

EXTRA_DIST =				\
	gs-theme-engine-marshal.list	\
	$(DESKTOP_IN_IN_FILES)		\
	$(themes_in_files)		\
	$(NULL)

CLEANFILES = 				\
	$(BUILT_SOURCES)		\
	cosmos-slideshow.desktop.in	\
	footlogo-floaters.desktop.in	\
	popsquares.desktop.in		\
	personal-slideshow.desktop.in	\
	$(NULL)

DISTCLEANFILES = 			\
	$(themes_DATA)			\
	$(NULL)

MAINTAINERCLEANFILES =			\
	*~				\
	Makefile.in			\
	cosmos-slideshow.desktop	\
	footlogo-floaters.desktop	\
	personal-slideshow.desktop	\
	popsquares.desktop		\
	$(NULL)