forked from adlocode/xfway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
120 lines (84 loc) · 5.26 KB
/
Makefile.am
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
@SET_MAKE@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
EXTRA_DIST = \
example.gtkrc-2.0 \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
COMPOSITOR
EXTRA_DIST += \
protocol/xfway-shell.xml
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
SUBDIRS = \
protocol \
src \
tests/test-switcher
BUILT_SOURCES = \
protocol/xfway-shell-client-protocol.c \
protocol/xfway-shell-client-protocol.h \
protocol/xfway-shell-server-protocol.h \
protocol/window-switcher-unstable-v1-server-protocol.h \
protocol/window-switcher-unstable-v1-client-protocol.h \
protocol/window-switcher-unstable-v1-server-protocol.c \
protocol/wlr-foreign-toplevel-management-unstable-v1-protocol.h \
protocol/wlr-foreign-toplevel-management-unstable-v1-client-protocol.h \
protocol/wlr-foreign-toplevel-management-unstable-v1-protocol.c \
protocol/wlr-layer-shell-unstable-v1-protocol.h \
protocol/wlr-layer-shell-unstable-v1-client-protocol.h \
protocol/wlr-layer-shell-unstable-v1-protocol.c
distclean-local:
rm -rf *.cache
html: Makefile
make -C doc html
dist-bz2: dist
zcat $(PACKAGE)-$(VERSION).tar.gz | \
bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
distcheck-bz2: distcheck
zcat $(PACKAGE)-$(VERSION).tar.gz | \
bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
snapshot: dist
mv $(PACKAGE)-$(VERSION).tar.gz \
$(PACKAGE)-$(VERSION)-r@[email protected]
snapshot-bz2: dist-bz2
mv $(PACKAGE)-$(VERSION).tar.bz2 \
$(PACKAGE)-$(VERSION)-r@[email protected]
.PHONY: ChangeLog
ChangeLog: Makefile
(GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
&& mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
|| (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)
dist-hook: ChangeLog
.SECONDEXPANSION:
define protostability
$(if $(findstring unstable,$1),unstable,stable)
endef
define protoname
$(shell echo $1 | $(SED) 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
endef
protocol/xfway-shell-client-protocol.h : $(top_srcdir)/protocol/xfway-shell.xml
$(AM_V_GEN) $(wayland_scanner) client-header $(top_srcdir)/protocol/xfway-shell.xml $(top_srcdir)/protocol/xfway-shell-client-protocol.h
protocol/xfway-shell-client-protocol.c : $(top_srcdir)/protocol/xfway-shell.xml
$(AM_V_GEN) $(wayland_scanner) private-code $(top_srcdir)/protocol/xfway-shell.xml $(top_srcdir)/protocol/xfway-shell-client-protocol.c
protocol/xfway-shell-server-protocol.h : $(top_srcdir)/protocol/xfway-shell.xml
$(AM_V_GEN) $(wayland_scanner) server-header $(top_srcdir)/protocol/xfway-shell.xml $(top_srcdir)/protocol/xfway-shell-server-protocol.h
protocol/window-switcher-unstable-v1-server-protocol.h : $(top_srcdir)/protocol/window-switcher-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) server-header $(top_srcdir)/protocol/window-switcher-unstable-v1.xml $(top_srcdir)/protocol/window-switcher-unstable-v1-server-protocol.h
protocol/window-switcher-unstable-v1-client-protocol.h : $(top_srcdir)/protocol/window-switcher-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) client-header $(top_srcdir)/protocol/window-switcher-unstable-v1.xml $(top_srcdir)/protocol/window-switcher-unstable-v1-client-protocol.h
protocol/window-switcher-unstable-v1-server-protocol.c : $(top_srcdir)/protocol/window-switcher-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) private-code $(top_srcdir)/protocol/window-switcher-unstable-v1.xml $(top_srcdir)/protocol/window-switcher-unstable-v1-server-protocol.c
protocol/wlr-foreign-toplevel-management-unstable-v1-protocol.h : $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) server-header $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1.xml $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1-protocol.h
protocol/wlr-foreign-toplevel-management-unstable-v1-client-protocol.h : $(top_srcdir)/protocol/window-switcher-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) client-header $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1.xml $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1-client-protocol.h
protocol/wlr-foreign-toplevel-management-unstable-v1-protocol.c : $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) private-code $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1.xml $(top_srcdir)/protocol/wlr-foreign-toplevel-management-unstable-v1-protocol.c
protocol/wlr-layer-shell-unstable-v1-protocol.h : $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) server-header $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1.xml $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1-protocol.h
protocol/wlr-layer-shell-unstable-v1-client-protocol.h : $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) client-header $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1.xml $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1-client-protocol.h
protocol/wlr-layer-shell-unstable-v1-protocol.c : $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1.xml
$(AM_V_GEN) $(wayland_scanner) private-code $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1.xml $(top_srcdir)/protocol/wlr-layer-shell-unstable-v1-protocol.c