File: Makefile-canvas-sources.am

package info (click to toggle)
hippo-canvas 0.3.1-1.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 2,820 kB
  • ctags: 1,823
  • sloc: ansic: 12,985; sh: 10,115; makefile: 81; xml: 40; python: 31
file content (141 lines) | stat: -rw-r--r-- 6,465 bytes parent folder | download | duplicates (4)
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
# This file is included both by the Mugshot client and by the stand-alone Mugshot
# library to avoid listing files in duplicate places
#

CANVAS_MARSHAL_LIST=$(CANVASSRCDIR)/common/hippo/hippo-canvas-marshal.list
CANVAS_MARSHAL_HEADER=$(MARSHAL_DIR)/hippo-canvas-marshal.h
CANVAS_MARSHAL_BODY=$(MARSHAL_DIR)/hippo-canvas-marshal.c

EXTRA_DIST += $(CANVAS_MARSHAL_LIST)

$(CANVAS_MARSHAL_HEADER): $(CANVAS_MARSHAL_LIST)
	mkdir $(MARSHAL_DIR) || true
	$(GLIB_GENMARSHAL) --prefix=hippo_canvas_marshal $(CANVAS_MARSHAL_LIST) --header > $(CANVAS_MARSHAL_HEADER)

$(CANVAS_MARSHAL_BODY): $(CANVAS_MARSHAL_LIST)
	mkdir $(MARSHAL_DIR) || true
	(echo "#include \"hippo-canvas-marshal.h\""; $(GLIB_GENMARSHAL) --prefix=hippo_canvas_marshal $(CANVAS_MARSHAL_LIST) --body) > $(CANVAS_MARSHAL_BODY)

CANVAS_ENUMS_HEADER=$(CANVASSRCDIR)/common/hippo/hippo-canvas-type-builtins.h
CANVAS_ENUMS_BODY=$(CANVASSRCDIR)/common/hippo/hippo-canvas-type-builtins.c
CANVAS_ENUMS_HEADER_STAMP=$(CANVASSRCDIR)/common/hippo/stamp-hippo-canvas-type-builtins.h
CANVAS_ENUMS_BODY_STAMP=$(CANVASSRCDIR)/common/hippo/stamp-hippo-canvas-type-builtins.c

EXTRA_DIST += $(CANVAS_ENUMS_HEADER) $(CANVAS_ENUMS_BODY)

$(CANVAS_ENUMS_BODY): $(CANVAS_ENUMS_BODY_STAMP)
	@true
$(CANVAS_ENUMS_BODY_STAMP): $(COMMON_CANVAS_HEADERFILES)
	mkdir $(MARSHAL_DIR) || true
	(cd $(CANVASSRCDIR)/common && $(GLIB_MKENUMS) \
		--fhead "#include \"hippo-canvas-type-builtins.h\"\n\n" \
		--fprod "\n/* enumerations from \"@filename@\" */" \
		--fprod "\n#include \"@filename@\"" \
		--vhead "const G@Type@Value _@enum_name@_values[] = {" \
		--vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
		--vtail "  { 0, NULL, NULL }\n};\n\n" \
		--vtail "GType\n@enum_name@_get_type (void)\n{\n" \
		--vtail "  static GType type = 0;\n\n" \
		--vtail "  if (G_UNLIKELY (type == 0))\n" \
		--vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
		--vtail "  return type;\n}\n\n" \
		$(^F:%=hippo/%)) > xgen-$(@F) \
	&& ( cmp -s xgen-$(@F) $(CANVAS_ENUMS_BODY) || cp xgen-$(@F) $(CANVAS_ENUMS_BODY)) \
	&& rm -f xgen-$(@F) \
	&& echo timestamp > $(CANVAS_ENUMS_BODY_STAMP)

$(CANVAS_ENUMS_HEADER): $(CANVAS_ENUMS_HEADER_STAMP)
	@true
$(CANVAS_ENUMS_HEADER_STAMP): $(COMMON_CANVAS_HEADERFILES)
	mkdir $(MARSHAL_DIR) || true
	(cd $(CANVASSRCDIR)/common && $(GLIB_MKENUMS) \
		--fhead "#ifndef HIPPO_CANVAS_TYPE_BUILTINS_H\n" \
		--fhead "#define HIPPO_CANVAS_TYPE_BUILTINS_H 1\n\n" \
		--fhead "#include <glib-object.h>\n\n" \
		--fhead "G_BEGIN_DECLS\n\n" \
		--ftail "G_END_DECLS\n\n" \
		--ftail "#endif /* HIPPO_CANVAS_TYPE_BUILTINS_H */\n" \
		--fprod "\n/* --- @filename@ --- */" \
		--eprod "#define HIPPO_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
		--eprod "GType @enum_name@_get_type (void);\n" \
		$(^F:%=hippo/%)) > xgen-$(@F) \
	&& ( cmp -s xgen-$(@F) $(CANVAS_ENUMS_HEADER) || cp xgen-$(@F) $(CANVAS_ENUMS_HEADER)) \
	&& rm -f xgen-$(@F) \
	&& echo timestamp > $(CANVAS_ENUMS_HEADER_STAMP)

STAMPS =				\
	$(CANVAS_ENUMS_BODY_STAMP)	\
	$(CANVAS_ENUMS_HEADER_STAMP)

COMMON_CANVAS_HEADERFILES = 					\
	$(CANVASSRCDIR)/common/hippo/hippo-animation.h			\
	$(CANVASSRCDIR)/common/hippo/hippo-animation-manager.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-box.h			\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-container.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-context.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-gradient.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-image.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-image-button.h	\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-item.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-layout.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-link.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-style.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-text.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-theme.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-theme-engine.h	\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-theme-image.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-widgets.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-util.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-event.h			\
	$(CANVASSRCDIR)/common/hippo/hippo-graphics.h

LINUX_CANVAS_HEADERFILES =					\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas.h			\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-window.h		\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-widget.h

COMMON_CANVAS_SOURCEFILES = 					\
	$(COMMON_CANVAS_HEADERFILES)				\
	$(CANVASSRCDIR)/common/hippo/hippo-animation.c			\
	$(CANVASSRCDIR)/common/hippo/hippo-animation-manager.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-internal.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-box.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-container.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-context.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-gradient.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-image.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-image-button.c	\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-item.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-layout.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-link.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-style.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-text.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-test.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-test.h		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-theme.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-theme-engine.c	\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-theme-image.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-theme-internal.h	\
	$(CANVASSRCDIR)/common/hippo/hippo-canvas-util.c		\
	$(CANVASSRCDIR)/common/hippo/hippo-event.c			\
	$(CANVASSRCDIR)/common/hippo/hippo-graphics.c

LINUX_CANVAS_SOURCEFILES =					\
	$(LINUX_CANVAS_HEADERFILES)				\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas.c			\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-window.c		\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-helper.c		\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-helper.h		\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-window-child.c	\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-window-child.h	\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-widget.c		\
	$(CANVASSRCDIR)/linux/hippo/hippo-canvas-widgets.c

CANVAS_BUILT_SOURCEFILES =			\
	$(CANVAS_MARSHAL_HEADER)		\
	$(CANVAS_MARSHAL_BODY)			\
	$(CANVAS_ENUMS_HEADER)			\
	$(CANVAS_ENUMS_BODY)

MAINTAINERCLEANFILES +=	$(CANVAS_BUILT_SOURCEFILES) $(STAMPS)
BUILT_SOURCES += $(CANVAS_BUILT_SOURCEFILES)