9 i3-config-wizard/i3-config-wizard \
10 i3-dump-log/i3-dump-log \
16 $(LN_S) -f i3 $(DESTDIR)$(bindir)/i3-with-shmlog
19 rm -f $(DESTDIR)$(bindir)/i3-with-shmlog
21 i3includedir=$(includedir)/i3
27 i3-migrate-config-to-v4 \
33 i3confdir = $(sysconfdir)/i3
38 applicationsdir = $(datarootdir)/applications
39 xsessionsdir = $(datarootdir)/xsessions
40 dist_applications_DATA = \
41 share/applications/i3.desktop
42 dist_xsessions_DATA = \
43 share/xsessions/i3.desktop \
44 share/xsessions/i3-with-shmlog.desktop
46 noinst_LIBRARIES = libi3.a
49 test.commands_parser \
54 testcases/complete-run.pl
57 rm -rf testsuite-* latest i3-cfg-for-* _Inline
58 clean-local: clean-check
60 TESTS = testcases/complete-run.pl
63 $(dist_docs_toc_DATA:.html=) \
64 $(dist_docs_notoc_DATA:.html=) \
65 docs/asciidoc-git.conf \
70 docs/i3-sync-working.dia \
71 docs/i3-sync-working.png \
72 docs/keyboard-layer1.png \
73 docs/keyboard-layer2.png \
74 docs/layout-saving-1.png \
78 docs/refcard_style.css \
79 docs/single_terminal.png \
81 docs/tree-layout1.png \
82 docs/tree-layout2.png \
87 docs/two_columns.png \
88 docs/two_terminals.png \
93 $(asciidoc_MANS:.1=.man) \
94 $(asciidoc_MANS:.1=.man) \
95 man/asciidoc.conf.in \
101 generate-command-parser.pl \
102 parser-specs/commands.spec \
103 parser-specs/config.spec \
104 parser-specs/highlighting.vim \
106 testcases/complete-run.pl.in \
107 testcases/i3-test.config \
108 testcases/lib/i3test/Test.pm \
109 testcases/lib/i3test/Util.pm \
110 testcases/lib/i3test/XTEST.pm \
111 testcases/lib/i3test.pm.in \
112 testcases/lib/SocketActivation.pm \
113 testcases/lib/StartXServer.pm \
114 testcases/lib/StatusLine.pm \
115 testcases/lib/TestWorker.pm \
116 testcases/Makefile.PL \
118 testcases/restart-state.golden \
120 testcases/valgrind.supp
122 # dirstamps contains directories which we want to be created in $(top_builddir)
123 # so that our custom rules can store files in them.
129 DISTCLEANFILES = $(dirstamps)
132 @stamp='$@'; $(MKDIR_P) "$${stamp%/*}"
135 ################################################################################
137 ################################################################################
139 docs_tocdir = ${docdir}
140 docs_notocdir = ${docdir}
141 docs_poddir = ${docdir}
143 dist_docs_toc_DATA = \
144 docs/hacking-howto.html \
145 docs/userguide.html \
147 docs/multi-monitor.html \
149 docs/testsuite.html \
150 docs/i3bar-protocol.html \
151 docs/layout-saving.html
153 dist_docs_notoc_DATA = \
156 dist_docs_pod_DATA = \
157 docs/lib-i3test.html \
158 docs/lib-i3test-test.html
160 $(dist_docs_toc_DATA): docs/%.html: docs/% docs/$(dirstamp)
161 $(AM_V_GEN) @PATH_ASCIIDOC@ -a toc -n -o $@ $<
163 $(dist_docs_notoc_DATA): docs/%.html: docs/% docs/$(dirstamp)
164 $(AM_V_GEN) @PATH_ASCIIDOC@ -n -o $@ $<
166 docs/lib-i3test.html: testcases/lib/i3test.pm docs/$(dirstamp)
167 $(AM_V_GEN) $(top_srcdir)/docs/i3-pod2html $< $@
169 docs/lib-i3test-test.html: testcases/lib/i3test/Test.pm docs/$(dirstamp)
170 $(AM_V_GEN) $(top_srcdir)/docs/i3-pod2html $< $@
174 dist_docs_notoc_DATA =
178 ################################################################################
180 ################################################################################
193 man/i3-config-wizard.1 \
194 man/i3-migrate-config-to-v4.1 \
195 man/i3-sensible-editor.1 \
196 man/i3-sensible-pager.1 \
197 man/i3-sensible-terminal.1 \
201 man/i3-dmenu-desktop.1 \
204 $(asciidoc_MANS): man/%.1: man/%.xml man/$(dirstamp)
205 $(AM_V_GEN) out='$@'; @PATH_XMLTO@ man -o "$${out%/*}" $<
206 @stamp='$@'; $(MKDIR_P) "$${stamp%/*}"
208 man/%.xml: man/%.man man/asciidoc.conf man/$(dirstamp)
209 $(AM_V_GEN) @PATH_ASCIIDOC@ -d manpage -b docbook -f $(top_builddir)/man/asciidoc.conf -o $@ $<
211 $(pod_MANS): man/%.1: % man/$(dirstamp)
212 $(AM_V_GEN) @PATH_POD2MAN@ --utf8 $< > $@
218 -DSYSCONFDIR="\"$(sysconfdir)\"" \
219 -I$(top_builddir)/parser \
220 -I$(top_srcdir)/include \
221 @AX_EXTEND_SRCDIR_CPPFLAGS@
228 $(XCB_UTIL_CURSOR_CFLAGS) \
229 $(XCB_UTIL_KEYSYM_CFLAGS) \
230 $(XCB_UTIL_WM_CFLAGS) \
231 $(XCB_UTIL_XRM_CFLAGS) \
232 $(XKBCOMMON_CFLAGS) \
236 $(CODE_COVERAGE_CFLAGS)
240 $(CODE_COVERAGE_CPPFLAGS)
246 $(XCB_UTIL_CURSOR_LIBS) \
247 $(XCB_UTIL_KEYSYMS_LIBS) \
248 $(XCB_UTIL_WM_LIBS) \
249 $(XCB_UTIL_XRM_LIBS) \
255 $(CODE_COVERAGE_LDFLAGS)
261 $(XCB_UTIL_XRM_CFLAGS) \
266 $(top_builddir)/libi3.a \
269 $(XCB_UTIL_XRM_LIBS) \
280 libi3/fake_configure_notify.c \
282 libi3/format_placeholders.c \
283 libi3/get_colorpixel.c \
284 libi3/get_config_path.c \
285 libi3/get_exe_path.c \
286 libi3/get_mod_mask.c \
287 libi3/get_process_filename.c \
288 libi3/get_visualtype.c \
289 libi3/ipc_connect.c \
290 libi3/ipc_recv_message.c \
291 libi3/ipc_send_message.c \
292 libi3/is_debug_build.c \
294 libi3/resolve_tilde.c \
295 libi3/root_atom_contents.c \
296 libi3/safewrappers.c \
299 libi3/ucs2_conversion.c
301 i3_dump_log_i3_dump_log_CFLAGS = \
306 i3_dump_log_i3_dump_log_LDADD = \
310 i3_dump_log_i3_dump_log_SOURCES = \
313 i3_input_i3_input_CFLAGS = \
317 i3_input_i3_input_LDADD = \
319 $(XCB_UTIL_KEYSYMS_LIBS)
321 i3_input_i3_input_SOURCES = \
322 i3-input/i3-input.h \
323 i3-input/keysym2ucs.c \
324 i3-input/keysym2ucs.h \
327 i3_msg_i3_msg_CFLAGS = \
331 i3_msg_i3_msg_LDADD = \
334 i3_msg_i3_msg_SOURCES = \
337 i3_nagbar_i3_nagbar_CFLAGS = \
341 i3_nagbar_i3_nagbar_LDADD = \
343 $(XCB_UTIL_CURSOR_LIBS)
345 i3_nagbar_i3_nagbar_SOURCES = \
346 i3-nagbar/atoms.xmacro \
347 i3-nagbar/i3-nagbar.h \
350 i3bar_i3bar_CPPFLAGS = \
352 -I$(top_srcdir)/i3bar/include
354 i3bar_i3bar_CFLAGS = \
358 $(XKBCOMMON_CFLAGS) \
359 $(PANGOCAIRO_CFLAGS) \
362 i3bar_i3bar_LDADD = \
365 $(XCB_UTIL_CURSOR_LIBS) \
370 i3bar_i3bar_SOURCES = \
371 i3bar/include/child.h \
372 i3bar/include/common.h \
373 i3bar/include/configuration.h \
374 i3bar/include/ipc.h \
375 i3bar/include/mode.h \
376 i3bar/include/outputs.h \
377 i3bar/include/parse_json_header.h \
378 i3bar/include/trayclients.h \
379 i3bar/include/util.h \
380 i3bar/include/workspaces.h \
381 i3bar/include/xcb_atoms.def \
382 i3bar/include/xcb.h \
388 i3bar/src/outputs.c \
389 i3bar/src/parse_json_header.c \
390 i3bar/src/workspaces.c \
393 i3_config_wizard_i3_config_wizard_CFLAGS = \
398 i3_config_wizard_i3_config_wizard_LDADD = \
400 $(XCB_UTIL_KEYSYMS_LIBS) \
403 i3_config_wizard_i3_config_wizard_SOURCES = \
404 i3-config-wizard/atoms.xmacro \
405 i3-config-wizard/main.c \
406 i3-config-wizard/xcb.h
408 test_inject_randr15_CPPFLAGS = \
411 test_inject_randr15_CFLAGS = \
415 test_inject_randr15_SOURCES = \
416 testcases/inject_randr1.5.c
418 test_inject_randr15_LDADD = \
421 test_commands_parser_CPPFLAGS = \
425 test_commands_parser_CFLAGS = \
429 test_commands_parser_SOURCES = \
430 src/commands_parser.c
432 test_commands_parser_LDADD = \
435 test_config_parser_CPPFLAGS = \
439 test_config_parser_CFLAGS = \
443 test_config_parser_SOURCES = \
446 test_config_parser_LDADD = \
449 command_parser_SOURCES = \
450 parser/GENERATED_command_enums.h \
451 parser/GENERATED_command_tokens.h \
452 parser/GENERATED_command_call.h
454 config_parser_SOURCES = \
455 parser/GENERATED_config_enums.h \
456 parser/GENERATED_config_tokens.h \
457 parser/GENERATED_config_call.h
460 $(command_parser_SOURCES) \
461 $(config_parser_SOURCES) \
463 include/assignments.h \
464 include/atoms_NET_SUPPORTED.xmacro \
465 include/atoms_rest.xmacro \
466 include/atoms.xmacro \
471 include/commands_parser.h \
472 include/config_directives.h \
473 include/configuration.h \
474 include/config_parser.h \
477 include/display_version.h \
479 include/fake_outputs.h \
484 include/key_press.h \
485 include/load_layout.h \
497 include/restore_layout.h \
498 include/scratchpad.h \
499 include/sd-daemon.h \
501 include/sighandler.h \
506 include/workspace.h \
511 include/yajl_utils.h \
516 src/commands_parser.c \
519 src/config_directives.c \
520 src/config_parser.c \
521 src/display_version.c \
539 src/restore_layout.c \
554 ################################################################################
556 ################################################################################
558 $(command_parser_SOURCES): %.h: i3-command-parser.stamp
560 $(config_parser_SOURCES): %.h: i3-config-parser.stamp
562 src/i3-commands_parser.$(OBJEXT): i3-command-parser.stamp
564 src/i3-config_parser.$(OBJEXT): i3-config-parser.stamp
566 i3-command-parser.stamp: parser/$(dirstamp) generate-command-parser.pl parser-specs/commands.spec
567 $(AM_V_GEN) $(top_srcdir)/generate-command-parser.pl --input=$(top_srcdir)/parser-specs/commands.spec --prefix=command
568 $(AM_V_at) mv GENERATED_command_* $(top_builddir)/parser
571 i3-config-parser.stamp: parser/$(dirstamp) generate-command-parser.pl parser-specs/config.spec
572 $(AM_V_GEN) $(top_srcdir)/generate-command-parser.pl --input=$(top_srcdir)/parser-specs/config.spec --prefix=config
573 $(AM_V_at) mv GENERATED_config_* $(top_builddir)/parser
577 i3-command-parser.stamp \
578 i3-config-parser.stamp