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
48 check_PROGRAMS = test.commands_parser test.config_parser
51 testcases/complete-run.pl
54 rm -rf testsuite-* latest i3-cfg-for-* _Inline
55 clean-local: clean-check
57 TESTS = testcases/complete-run.pl
60 $(dist_docs_toc_DATA:.html=) \
61 $(dist_docs_notoc_DATA:.html=) \
62 docs/asciidoc-git.conf \
67 docs/i3-sync-working.dia \
68 docs/i3-sync-working.png \
69 docs/keyboard-layer1.png \
70 docs/keyboard-layer2.png \
71 docs/layout-saving-1.png \
75 docs/refcard_style.css \
76 docs/single_terminal.png \
78 docs/tree-layout1.png \
79 docs/tree-layout2.png \
84 docs/two_columns.png \
85 docs/two_terminals.png \
90 $(asciidoc_MANS:.1=.man) \
91 $(asciidoc_MANS:.1=.man) \
92 man/asciidoc.conf.in \
98 generate-command-parser.pl \
99 parser-specs/commands.spec \
100 parser-specs/config.spec \
101 parser-specs/highlighting.vim \
103 testcases/complete-run.pl.in \
104 testcases/i3-test.config \
105 testcases/lib/i3test/Test.pm \
106 testcases/lib/i3test/Util.pm \
107 testcases/lib/i3test/XTEST.pm \
108 testcases/lib/i3test.pm.in \
109 testcases/lib/SocketActivation.pm \
110 testcases/lib/StartXServer.pm \
111 testcases/lib/StatusLine.pm \
112 testcases/lib/TestWorker.pm \
113 testcases/Makefile.PL \
115 testcases/restart-state.golden \
117 testcases/valgrind.supp
119 # dirstamps contains directories which we want to be created in $(top_builddir)
120 # so that our custom rules can store files in them.
126 DISTCLEANFILES = $(dirstamps)
129 @stamp='$@'; $(MKDIR_P) "$${stamp%/*}"
132 ################################################################################
134 ################################################################################
136 docs_tocdir = ${docdir}
137 docs_notocdir = ${docdir}
138 docs_poddir = ${docdir}
140 dist_docs_toc_DATA = \
141 docs/hacking-howto.html \
142 docs/userguide.html \
144 docs/multi-monitor.html \
146 docs/testsuite.html \
147 docs/i3bar-protocol.html \
148 docs/layout-saving.html
150 dist_docs_notoc_DATA = \
153 dist_docs_pod_DATA = \
154 docs/lib-i3test.html \
155 docs/lib-i3test-test.html
157 $(dist_docs_toc_DATA): docs/%.html: docs/% docs/$(dirstamp)
158 $(AM_V_GEN) @PATH_ASCIIDOC@ -a toc -n -o $@ $<
160 $(dist_docs_notoc_DATA): docs/%.html: docs/% docs/$(dirstamp)
161 $(AM_V_GEN) @PATH_ASCIIDOC@ -n -o $@ $<
163 docs/lib-i3test.html: testcases/lib/i3test.pm docs/$(dirstamp)
164 $(AM_V_GEN) $(top_srcdir)/docs/i3-pod2html $< $@
166 docs/lib-i3test-test.html: testcases/lib/i3test/Test.pm docs/$(dirstamp)
167 $(AM_V_GEN) $(top_srcdir)/docs/i3-pod2html $< $@
171 dist_docs_notoc_DATA =
175 ################################################################################
177 ################################################################################
190 man/i3-config-wizard.1 \
191 man/i3-migrate-config-to-v4.1 \
192 man/i3-sensible-editor.1 \
193 man/i3-sensible-pager.1 \
194 man/i3-sensible-terminal.1 \
198 man/i3-dmenu-desktop.1 \
201 $(asciidoc_MANS): man/%.1: man/%.xml man/$(dirstamp)
202 $(AM_V_GEN) out='$@'; @PATH_XMLTO@ man -o "$${out%/*}" $<
203 @stamp='$@'; $(MKDIR_P) "$${stamp%/*}"
205 man/%.xml: man/%.man man/asciidoc.conf man/$(dirstamp)
206 $(AM_V_GEN) @PATH_ASCIIDOC@ -d manpage -b docbook -f $(top_builddir)/man/asciidoc.conf -o $@ $<
208 $(pod_MANS): man/%.1: % man/$(dirstamp)
209 $(AM_V_GEN) @PATH_POD2MAN@ --utf8 $< > $@
215 -I$(top_builddir)/parser \
216 -I$(top_srcdir)/include \
217 @AX_EXTEND_SRCDIR_CPPFLAGS@
224 $(XCB_UTIL_CURSOR_CFLAGS) \
225 $(XCB_UTIL_KEYSYM_CFLAGS) \
226 $(XCB_UTIL_WM_CFLAGS) \
227 $(XCB_UTIL_XRM_CFLAGS) \
228 $(XKBCOMMON_CFLAGS) \
232 $(CODE_COVERAGE_CFLAGS)
236 $(CODE_COVERAGE_CPPFLAGS)
242 $(XCB_UTIL_CURSOR_LIBS) \
243 $(XCB_UTIL_KEYSYMS_LIBS) \
244 $(XCB_UTIL_WM_LIBS) \
245 $(XCB_UTIL_XRM_LIBS) \
251 $(CODE_COVERAGE_LDFLAGS)
257 $(XCB_UTIL_XRM_CFLAGS) \
262 $(top_builddir)/libi3.a \
265 $(XCB_UTIL_XRM_LIBS) \
276 libi3/fake_configure_notify.c \
278 libi3/format_placeholders.c \
279 libi3/get_colorpixel.c \
280 libi3/get_config_path.c \
281 libi3/get_exe_path.c \
282 libi3/get_mod_mask.c \
283 libi3/get_process_filename.c \
284 libi3/get_visualtype.c \
285 libi3/ipc_connect.c \
286 libi3/ipc_recv_message.c \
287 libi3/ipc_send_message.c \
288 libi3/is_debug_build.c \
290 libi3/resolve_tilde.c \
291 libi3/root_atom_contents.c \
292 libi3/safewrappers.c \
295 libi3/ucs2_conversion.c
297 i3_dump_log_i3_dump_log_CFLAGS = \
302 i3_dump_log_i3_dump_log_LDADD = \
306 i3_dump_log_i3_dump_log_SOURCES = \
309 i3_input_i3_input_CFLAGS = \
313 i3_input_i3_input_LDADD = \
315 $(XCB_UTIL_KEYSYMS_LIBS)
317 i3_input_i3_input_SOURCES = \
318 i3-input/i3-input.h \
319 i3-input/keysym2ucs.c \
320 i3-input/keysym2ucs.h \
323 i3_msg_i3_msg_CFLAGS = \
327 i3_msg_i3_msg_LDADD = \
330 i3_msg_i3_msg_SOURCES = \
333 i3_nagbar_i3_nagbar_CFLAGS = \
337 i3_nagbar_i3_nagbar_LDADD = \
339 $(XCB_UTIL_CURSOR_LIBS)
341 i3_nagbar_i3_nagbar_SOURCES = \
342 i3-nagbar/atoms.xmacro \
343 i3-nagbar/i3-nagbar.h \
346 i3bar_i3bar_CPPFLAGS = \
348 -I$(top_srcdir)/i3bar/include
350 i3bar_i3bar_CFLAGS = \
354 $(XKBCOMMON_CFLAGS) \
355 $(PANGOCAIRO_CFLAGS) \
358 i3bar_i3bar_LDADD = \
361 $(XCB_UTIL_CURSOR_LIBS) \
366 i3bar_i3bar_SOURCES = \
367 i3bar/include/child.h \
368 i3bar/include/common.h \
369 i3bar/include/configuration.h \
370 i3bar/include/ipc.h \
371 i3bar/include/mode.h \
372 i3bar/include/outputs.h \
373 i3bar/include/parse_json_header.h \
374 i3bar/include/trayclients.h \
375 i3bar/include/util.h \
376 i3bar/include/workspaces.h \
377 i3bar/include/xcb_atoms.def \
378 i3bar/include/xcb.h \
384 i3bar/src/outputs.c \
385 i3bar/src/parse_json_header.c \
386 i3bar/src/workspaces.c \
389 i3_config_wizard_i3_config_wizard_CFLAGS = \
394 i3_config_wizard_i3_config_wizard_LDADD = \
396 $(XCB_UTIL_KEYSYMS_LIBS) \
399 i3_config_wizard_i3_config_wizard_SOURCES = \
400 i3-config-wizard/atoms.xmacro \
401 i3-config-wizard/main.c \
402 i3-config-wizard/xcb.h
404 test_commands_parser_CPPFLAGS = \
408 test_commands_parser_CFLAGS = \
412 test_commands_parser_SOURCES = \
413 src/commands_parser.c
415 test_commands_parser_LDADD = \
418 test_config_parser_CPPFLAGS = \
422 test_config_parser_CFLAGS = \
426 test_config_parser_SOURCES = \
429 test_config_parser_LDADD = \
432 command_parser_SOURCES = \
433 parser/GENERATED_command_enums.h \
434 parser/GENERATED_command_tokens.h \
435 parser/GENERATED_command_call.h
437 config_parser_SOURCES = \
438 parser/GENERATED_config_enums.h \
439 parser/GENERATED_config_tokens.h \
440 parser/GENERATED_config_call.h
443 $(command_parser_SOURCES) \
444 $(config_parser_SOURCES) \
446 include/assignments.h \
447 include/atoms_NET_SUPPORTED.xmacro \
448 include/atoms_rest.xmacro \
449 include/atoms.xmacro \
454 include/commands_parser.h \
455 include/config_directives.h \
456 include/configuration.h \
457 include/config_parser.h \
461 include/display_version.h \
463 include/fake_outputs.h \
468 include/key_press.h \
469 include/load_layout.h \
481 include/restore_layout.h \
482 include/scratchpad.h \
483 include/sd-daemon.h \
485 include/sighandler.h \
490 include/workspace.h \
495 include/yajl_utils.h \
500 src/commands_parser.c \
503 src/config_directives.c \
504 src/config_parser.c \
506 src/display_version.c \
524 src/restore_layout.c \
539 ################################################################################
541 ################################################################################
543 $(command_parser_SOURCES): %.h: i3-command-parser.stamp
545 $(config_parser_SOURCES): %.h: i3-config-parser.stamp
547 src/i3-commands_parser.$(OBJEXT): i3-command-parser.stamp
549 src/i3-config_parser.$(OBJEXT): i3-config-parser.stamp
551 i3-command-parser.stamp: parser/$(dirstamp) generate-command-parser.pl parser-specs/commands.spec
552 $(AM_V_GEN) $(top_srcdir)/generate-command-parser.pl --input=$(top_srcdir)/parser-specs/commands.spec --prefix=command
553 $(AM_V_at) mv GENERATED_command_* $(top_builddir)/parser
556 i3-config-parser.stamp: parser/$(dirstamp) generate-command-parser.pl parser-specs/config.spec
557 $(AM_V_GEN) $(top_srcdir)/generate-command-parser.pl --input=$(top_srcdir)/parser-specs/config.spec --prefix=config
558 $(AM_V_at) mv GENERATED_config_* $(top_builddir)/parser
562 i3-command-parser.stamp \
563 i3-config-parser.stamp