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
60 rm -rf testsuite-* latest i3-cfg-for-* _Inline
61 clean-local: clean-check
63 TESTS = testcases/complete-run.pl
66 $(dist_docs_toc_DATA:.html=) \
67 $(dist_docs_notoc_DATA:.html=) \
69 AnyEvent-I3/MANIFEST \
70 AnyEvent-I3/MANIFEST.SKIP \
71 AnyEvent-I3/Makefile.PL \
73 AnyEvent-I3/lib/AnyEvent/I3.pm \
74 AnyEvent-I3/t/00-load.t \
75 AnyEvent-I3/t/01-workspaces.t \
76 AnyEvent-I3/t/02-sugar.t \
77 AnyEvent-I3/t/boilerplate.t \
78 AnyEvent-I3/t/manifest.t \
79 AnyEvent-I3/t/pod-coverage.t \
81 docs/asciidoc-git.conf \
86 docs/i3-sync-working.dia \
87 docs/i3-sync-working.png \
88 docs/keyboard-layer1.png \
89 docs/keyboard-layer2.png \
90 docs/layout-saving-1.png \
94 docs/refcard_style.css \
95 docs/single_terminal.png \
97 docs/tree-layout1.png \
98 docs/tree-layout2.png \
100 docs/tree-shot2.png \
101 docs/tree-shot3.png \
102 docs/tree-shot4.png \
103 docs/two_columns.png \
104 docs/two_terminals.png \
109 $(asciidoc_MANS:.1=.man) \
110 $(asciidoc_MANS:.1=.man) \
111 man/asciidoc.conf.in \
117 generate-command-parser.pl \
118 parser-specs/commands.spec \
119 parser-specs/config.spec \
120 parser-specs/highlighting.vim \
122 testcases/complete-run.pl.in \
123 testcases/i3-test.config \
124 testcases/lib/i3test/Test.pm \
125 testcases/lib/i3test/Util.pm \
126 testcases/lib/i3test/XTEST.pm \
127 testcases/lib/i3test.pm.in \
128 testcases/lib/SocketActivation.pm \
129 testcases/lib/StartXServer.pm \
130 testcases/lib/StatusLine.pm \
131 testcases/lib/TestWorker.pm \
132 testcases/Makefile.PL \
134 testcases/restart-state.golden \
136 testcases/valgrind.supp
138 # dirstamps contains directories which we want to be created in $(top_builddir)
139 # so that our custom rules can store files in them.
145 DISTCLEANFILES = $(dirstamps)
148 @stamp='$@'; $(MKDIR_P) "$${stamp%/*}"
151 ################################################################################
153 ################################################################################
155 docs_tocdir = ${docdir}
156 docs_notocdir = ${docdir}
157 docs_poddir = ${docdir}
159 dist_docs_toc_DATA = \
160 docs/hacking-howto.html \
161 docs/userguide.html \
163 docs/multi-monitor.html \
165 docs/testsuite.html \
166 docs/i3bar-protocol.html \
167 docs/layout-saving.html
169 dist_docs_notoc_DATA = \
172 dist_docs_pod_DATA = \
173 docs/lib-i3test.html \
174 docs/lib-i3test-test.html
176 $(dist_docs_toc_DATA): docs/%.html: docs/% docs/$(dirstamp)
177 $(AM_V_GEN) @PATH_ASCIIDOC@ -a toc -n -o $@ $<
179 $(dist_docs_notoc_DATA): docs/%.html: docs/% docs/$(dirstamp)
180 $(AM_V_GEN) @PATH_ASCIIDOC@ -n -o $@ $<
182 docs/lib-i3test.html: testcases/lib/i3test.pm docs/$(dirstamp)
183 $(AM_V_GEN) $(top_srcdir)/docs/i3-pod2html $< $@
185 docs/lib-i3test-test.html: testcases/lib/i3test/Test.pm docs/$(dirstamp)
186 $(AM_V_GEN) $(top_srcdir)/docs/i3-pod2html $< $@
190 dist_docs_notoc_DATA =
194 ################################################################################
196 ################################################################################
209 man/i3-config-wizard.1 \
210 man/i3-migrate-config-to-v4.1 \
211 man/i3-sensible-editor.1 \
212 man/i3-sensible-pager.1 \
213 man/i3-sensible-terminal.1 \
217 man/i3-dmenu-desktop.1 \
220 $(asciidoc_MANS): man/%.1: man/%.xml man/$(dirstamp)
221 $(AM_V_GEN) out='$@'; @PATH_XMLTO@ man -o "$${out%/*}" $<
222 @stamp='$@'; $(MKDIR_P) "$${stamp%/*}"
224 man/%.xml: man/%.man man/asciidoc.conf man/$(dirstamp)
225 $(AM_V_GEN) @PATH_ASCIIDOC@ -d manpage -b docbook -f $(top_builddir)/man/asciidoc.conf -o $@ $<
227 $(pod_MANS): man/%.1: % man/$(dirstamp)
228 $(AM_V_GEN) @PATH_POD2MAN@ --utf8 $< > $@
234 -DSYSCONFDIR="\"$(sysconfdir)\"" \
235 -I$(top_builddir)/parser \
236 -I$(top_srcdir)/include \
237 @AX_EXTEND_SRCDIR_CPPFLAGS@
244 $(XCB_UTIL_CURSOR_CFLAGS) \
245 $(XCB_UTIL_KEYSYM_CFLAGS) \
246 $(XCB_UTIL_WM_CFLAGS) \
247 $(XCB_UTIL_XRM_CFLAGS) \
248 $(XKBCOMMON_CFLAGS) \
252 $(CODE_COVERAGE_CFLAGS)
256 $(CODE_COVERAGE_CPPFLAGS)
262 $(XCB_UTIL_CURSOR_LIBS) \
263 $(XCB_UTIL_KEYSYMS_LIBS) \
264 $(XCB_UTIL_WM_LIBS) \
265 $(XCB_UTIL_XRM_LIBS) \
271 $(CODE_COVERAGE_LDFLAGS)
277 $(XCB_UTIL_XRM_CFLAGS) \
282 $(top_builddir)/libi3.a \
285 $(XCB_UTIL_XRM_LIBS) \
296 libi3/fake_configure_notify.c \
298 libi3/format_placeholders.c \
299 libi3/get_colorpixel.c \
300 libi3/get_config_path.c \
301 libi3/get_exe_path.c \
302 libi3/get_mod_mask.c \
303 libi3/get_process_filename.c \
304 libi3/get_visualtype.c \
305 libi3/ipc_connect.c \
306 libi3/ipc_recv_message.c \
307 libi3/ipc_send_message.c \
308 libi3/is_debug_build.c \
310 libi3/resolve_tilde.c \
311 libi3/root_atom_contents.c \
312 libi3/safewrappers.c \
315 libi3/ucs2_conversion.c
317 i3_dump_log_i3_dump_log_CFLAGS = \
322 i3_dump_log_i3_dump_log_LDADD = \
326 i3_dump_log_i3_dump_log_SOURCES = \
329 i3_input_i3_input_CFLAGS = \
333 i3_input_i3_input_LDADD = \
335 $(XCB_UTIL_KEYSYMS_LIBS)
337 i3_input_i3_input_SOURCES = \
338 i3-input/i3-input.h \
339 i3-input/keysym2ucs.c \
340 i3-input/keysym2ucs.h \
343 i3_msg_i3_msg_CFLAGS = \
347 i3_msg_i3_msg_LDADD = \
350 i3_msg_i3_msg_SOURCES = \
353 i3_nagbar_i3_nagbar_CFLAGS = \
357 i3_nagbar_i3_nagbar_LDADD = \
359 $(XCB_UTIL_CURSOR_LIBS)
361 i3_nagbar_i3_nagbar_SOURCES = \
362 i3-nagbar/atoms.xmacro \
363 i3-nagbar/i3-nagbar.h \
366 i3bar_i3bar_CPPFLAGS = \
368 -I$(top_srcdir)/i3bar/include
370 i3bar_i3bar_CFLAGS = \
374 $(XKBCOMMON_CFLAGS) \
375 $(PANGOCAIRO_CFLAGS) \
378 i3bar_i3bar_LDADD = \
381 $(XCB_UTIL_CURSOR_LIBS) \
386 i3bar_i3bar_SOURCES = \
387 i3bar/include/child.h \
388 i3bar/include/common.h \
389 i3bar/include/configuration.h \
390 i3bar/include/ipc.h \
391 i3bar/include/mode.h \
392 i3bar/include/outputs.h \
393 i3bar/include/parse_json_header.h \
394 i3bar/include/trayclients.h \
395 i3bar/include/util.h \
396 i3bar/include/workspaces.h \
397 i3bar/include/xcb_atoms.def \
398 i3bar/include/xcb.h \
404 i3bar/src/outputs.c \
405 i3bar/src/parse_json_header.c \
406 i3bar/src/workspaces.c \
409 i3_config_wizard_i3_config_wizard_CFLAGS = \
414 i3_config_wizard_i3_config_wizard_LDADD = \
416 $(XCB_UTIL_KEYSYMS_LIBS) \
419 i3_config_wizard_i3_config_wizard_SOURCES = \
420 i3-config-wizard/atoms.xmacro \
421 i3-config-wizard/main.c \
422 i3-config-wizard/xcb.h
424 test_inject_randr15_CPPFLAGS = \
427 test_inject_randr15_CFLAGS = \
431 test_inject_randr15_SOURCES = \
432 testcases/inject_randr1.5.c
434 test_inject_randr15_LDADD = \
437 test_commands_parser_CPPFLAGS = \
441 test_commands_parser_CFLAGS = \
445 test_commands_parser_SOURCES = \
446 src/commands_parser.c
448 test_commands_parser_LDADD = \
451 test_config_parser_CPPFLAGS = \
455 test_config_parser_CFLAGS = \
459 test_config_parser_SOURCES = \
462 test_config_parser_LDADD = \
465 command_parser_SOURCES = \
466 parser/GENERATED_command_enums.h \
467 parser/GENERATED_command_tokens.h \
468 parser/GENERATED_command_call.h
470 config_parser_SOURCES = \
471 parser/GENERATED_config_enums.h \
472 parser/GENERATED_config_tokens.h \
473 parser/GENERATED_config_call.h
476 $(command_parser_SOURCES) \
477 $(config_parser_SOURCES) \
479 include/assignments.h \
480 include/atoms_NET_SUPPORTED.xmacro \
481 include/atoms_rest.xmacro \
482 include/atoms.xmacro \
487 include/commands_parser.h \
488 include/config_directives.h \
489 include/configuration.h \
490 include/config_parser.h \
493 include/display_version.h \
495 include/fake_outputs.h \
500 include/key_press.h \
501 include/load_layout.h \
513 include/restore_layout.h \
514 include/scratchpad.h \
515 include/sd-daemon.h \
517 include/sighandler.h \
522 include/workspace.h \
527 include/yajl_utils.h \
532 src/commands_parser.c \
535 src/config_directives.c \
536 src/config_parser.c \
537 src/display_version.c \
555 src/restore_layout.c \
570 ################################################################################
572 ################################################################################
574 $(command_parser_SOURCES): %.h: i3-command-parser.stamp
576 $(config_parser_SOURCES): %.h: i3-config-parser.stamp
578 src/i3-commands_parser.$(OBJEXT): i3-command-parser.stamp
580 src/i3-config_parser.$(OBJEXT): i3-config-parser.stamp
582 i3-command-parser.stamp: parser/$(dirstamp) generate-command-parser.pl parser-specs/commands.spec
583 $(AM_V_GEN) $(top_srcdir)/generate-command-parser.pl --input=$(top_srcdir)/parser-specs/commands.spec --prefix=command
584 $(AM_V_at) mv GENERATED_command_* $(top_builddir)/parser
587 i3-config-parser.stamp: parser/$(dirstamp) generate-command-parser.pl parser-specs/config.spec
588 $(AM_V_GEN) $(top_srcdir)/generate-command-parser.pl --input=$(top_srcdir)/parser-specs/config.spec --prefix=config
589 $(AM_V_at) mv GENERATED_config_* $(top_builddir)/parser
592 ################################################################################
593 # AnyEvent-I3 build process
594 ################################################################################
596 anyevent-i3.stamp: AnyEvent-I3/lib/AnyEvent/I3.pm
597 $(AM_V_BUILD) (cd $(top_srcdir)/AnyEvent-I3 && perl Makefile.PL && make)
601 i3-command-parser.stamp \
602 i3-config-parser.stamp \