2
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
3
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
4
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
5
-I$(srcdir)/definitions \
7
-I$(srcdir)/event-factories \
10
$(SPELL_CHECKING_CFLAGS)
22
1
bin_PROGRAMS = almanah
25
definition-builtins.c \
26
definition-builtins.h \
27
event-factory-builtins.c \
28
event-factory-builtins.h \
4
$(ALMANAH_MARSHAL_FILES) \
5
$(ALMANAH_ENUM_FILES) \
35
12
definition-manager-window.c \
36
13
definition-manager-window.h \
39
add-definition-dialog.c \
40
add-definition-dialog.h \
16
add-definition-dialog.c \
17
add-definition-dialog.h \
55
36
definitions/file.c \
56
37
definitions/file.h \
57
38
definitions/note.c \
58
39
definitions/note.h \
59
40
definitions/uri.c \
60
41
definitions/uri.h \
61
events/calendar-appointment.c \
62
events/calendar-appointment.h \
63
events/calendar-task.c \
64
events/calendar-task.h \
65
event-factories/calendar.c \
66
event-factories/calendar.h \
42
events/f-spot-photo.c \
43
events/f-spot-photo.h \
44
event-factories/f-spot.c \
45
event-factories/f-spot.h
49
event-factories/calendar.c \
50
event-factories/calendar.h \
67
51
event-factories/calendar-client.c \
68
52
event-factories/calendar-client.h \
69
53
event-factories/calendar-debug.h \
70
54
event-factories/calendar-sources.c \
71
event-factories/calendar-sources.h
55
event-factories/calendar-sources.h \
56
events/calendar-appointment.c \
57
events/calendar-appointment.h \
58
events/calendar-task.c \
59
events/calendar-task.h \
60
definitions/contact.c \
74
65
almanah_SOURCES += \
76
67
preferences-dialog.h
71
-DPACKAGE_LOCALE_DIR=\""$(datadir)/locale"\" \
72
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
73
-I$(srcdir)/definitions \
75
-I$(srcdir)/event-factories \
76
$(DISABLE_DEPRECATED) \
82
$(ENCRYPTION_CFLAGS) \
83
$(SPELL_CHECKING_CFLAGS) \
82
90
$(ENCRYPTION_LIBS) \
83
$(SPELL_CHECKING_LIBS)
85
definition-builtins.h: stamp-definition-builtins.h
88
stamp-definition-builtins.h: definition.h Makefile
89
(cd $(srcdir) && $(GLIB_MKENUMS) \
91
$(SPELL_CHECKING_LIBS) \
95
ALMANAH_MARSHAL_FILES = \
99
almanah-marshal.h: almanah-marshal.list Makefile
100
$(AM_V_GEN)($(GLIB_GENMARSHAL) --prefix=almanah_marshal $(srcdir)/almanah-marshal.list --header > $(@F))
101
almanah-marshal.c: almanah-marshal.h Makefile
102
$(AM_V_GEN)($(GLIB_GENMARSHAL) --prefix=almanah_marshal $(srcdir)/almanah-marshal.list --header --body > $(@F))
105
ALMANAH_ENUM_FILES = \
106
definition-builtins.h \
107
definition-builtins.c \
108
event-factory-builtins.h \
109
event-factory-builtins.c
111
definition-builtins.h: definition.h Makefile
112
$(AM_V_GEN)(cd $(srcdir) && $(GLIB_MKENUMS) \
90
113
--fhead "#ifndef __ALMANAH_DEFINITION_BUILTINS_H__\n#define __ALMANAH_DEFINITION_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
91
114
--fprod "/* enumerations from \"@filename@\" */\n" \
92
115
--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ALMANAH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
93
--ftail "G_END_DECLS\n\n#endif /* __ALMANAH_DEFINITION_BUILTINS_H__ */" definition.h) >> xgen-gtbh \
94
&& (cmp -s xgen-gtbh definition-builtins.h || cp xgen-gtbh definition-builtins.h ) \
96
&& echo timestamp > $(@F)
116
--ftail "G_END_DECLS\n\n#endif /* __ALMANAH_DEFINITION_BUILTINS_H__ */" \
117
definition.h) > $(@F)
98
119
definition-builtins.c: definition.h Makefile definition-builtins.h
99
(cd $(srcdir) && $(GLIB_MKENUMS) \
120
$(AM_V_GEN)(cd $(srcdir) && $(GLIB_MKENUMS) \
100
121
--fhead "#include \"definition.h\"\n#include \"definition-builtins.h\"" \
101
122
--fprod "\n/* enumerations from \"@filename@\" */" \
102
123
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
103
124
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
104
125
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
105
definition.h ) > xgen-gtbc \
106
&& cp xgen-gtbc definition-builtins.c \
109
event-factory-builtins.h: stamp-event-factory-builtins.h
112
stamp-event-factory-builtins.h: event-factory.h Makefile
113
(cd $(srcdir) && $(GLIB_MKENUMS) \
126
definition.h) > $(@F)
128
event-factory-builtins.h: event-factory.h Makefile
129
$(AM_V_GEN)(cd $(srcdir) && $(GLIB_MKENUMS) \
114
130
--fhead "#ifndef __ALMANAH_EVENT_FACTORY_BUILTINS_H__\n#define __ALMANAH_EVENT_FACTORY_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
115
131
--fprod "/* enumerations from \"@filename@\" */\n" \
116
132
--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ALMANAH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
117
--ftail "G_END_DECLS\n\n#endif /* __ALMANAH_EVENT_FACTORY_BUILTINS_H__ */" event-factory.h) >> xgen-gtbh \
118
&& (cmp -s xgen-gtbh event-factory-builtins.h || cp xgen-gtbh event-factory-builtins.h ) \
120
&& echo timestamp > $(@F)
133
--ftail "G_END_DECLS\n\n#endif /* __ALMANAH_EVENT_FACTORY_BUILTINS_H__ */" \
134
event-factory.h) > $(@F)
122
136
event-factory-builtins.c: event-factory.h Makefile event-factory-builtins.h
123
(cd $(srcdir) && $(GLIB_MKENUMS) \
137
$(AM_V_GEN)(cd $(srcdir) && $(GLIB_MKENUMS) \
124
138
--fhead "#include \"event-factory.h\"\n#include \"event-factory-builtins.h\"" \
125
139
--fprod "\n/* enumerations from \"@filename@\" */" \
126
140
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
127
141
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
128
142
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
129
event-factory.h ) > xgen-gtbc \
130
&& cp xgen-gtbc event-factory-builtins.c \
143
event-factory.h) > $(@F)
134
definition-builtins.h \
135
definition-builtins.c \
136
stamp-definition-builtins.h \
137
event-factory-builtins.h \
138
event-factory-builtins.c \
139
stamp-event-factory-builtins.h
146
$(ALMANAH_MARSHAL_FILES) \
147
$(ALMANAH_ENUM_FILES)
149
EXTRA_DIST = almanah-marshal.list
151
-include $(top_srcdir)/git.mk