autotools: place binaries in top level of build dir, not in subdirs (#4093)
meson only supports the top level (no subdirs), so this makes the transition
easier.
For this to work with autotools, we need to *disable* the subdir-objects option,
that autotools wants us to enable for forward-compatibility.
This results in a bunch of warnings at autoreconf-time, but we don’t care, given
that we intend to switch away from autotools. Both build systems working next to
each other (as best as they can) is more important.
related to #4086
Michael Stapelberg authored 3 years ago
GitHub committed 3 years ago
4 | 4 |
|
5 | 5 |
bin_PROGRAMS = \
|
6 | 6 |
i3 \
|
7 | |
i3bar/i3bar \
|
8 | |
i3-config-wizard/i3-config-wizard \
|
9 | |
i3-dump-log/i3-dump-log \
|
10 | |
i3-input/i3-input \
|
11 | |
i3-msg/i3-msg \
|
12 | |
i3-nagbar/i3-nagbar
|
|
7 |
i3bar \
|
|
8 |
i3-config-wizard \
|
|
9 |
i3-dump-log \
|
|
10 |
i3-input \
|
|
11 |
i3-msg \
|
|
12 |
i3-nagbar
|
13 | 13 |
|
14 | 14 |
install-exec-hook:
|
15 | 15 |
$(LN_S) -f i3 $(DESTDIR)$(bindir)/i3-with-shmlog
|
|
330 | 330 |
libi3/strndup.c \
|
331 | 331 |
libi3/ucs2_conversion.c
|
332 | 332 |
|
333 | |
i3_dump_log_i3_dump_log_CFLAGS = \
|
|
333 |
i3_dump_log_CFLAGS = \
|
334 | 334 |
$(AM_CFLAGS) \
|
335 | 335 |
$(PTHREAD_CFLAGS) \
|
336 | 336 |
$(libi3_CFLAGS)
|
337 | 337 |
|
338 | |
i3_dump_log_i3_dump_log_LDADD = \
|
|
338 |
i3_dump_log_LDADD = \
|
339 | 339 |
$(PTHREAD_LIBS) \
|
340 | 340 |
$(libi3_LIBS)
|
341 | 341 |
|
342 | |
i3_dump_log_i3_dump_log_SOURCES = \
|
|
342 |
i3_dump_log_SOURCES = \
|
343 | 343 |
i3-dump-log/main.c
|
344 | 344 |
|
345 | |
i3_input_i3_input_CFLAGS = \
|
|
345 |
i3_input_CFLAGS = \
|
346 | 346 |
$(AM_CFLAGS) \
|
347 | 347 |
$(libi3_CFLAGS)
|
348 | 348 |
|
349 | |
i3_input_i3_input_LDADD = \
|
|
349 |
i3_input_LDADD = \
|
350 | 350 |
$(libi3_LIBS) \
|
351 | 351 |
$(XCB_UTIL_KEYSYMS_LIBS)
|
352 | 352 |
|
353 | |
i3_input_i3_input_SOURCES = \
|
|
353 |
i3_input_SOURCES = \
|
354 | 354 |
i3-input/i3-input.h \
|
355 | 355 |
i3-input/keysym2ucs.c \
|
356 | 356 |
i3-input/keysym2ucs.h \
|
357 | 357 |
i3-input/main.c
|
358 | 358 |
|
359 | |
i3_msg_i3_msg_CFLAGS = \
|
|
359 |
i3_msg_CFLAGS = \
|
360 | 360 |
$(AM_CFLAGS) \
|
361 | 361 |
$(libi3_CFLAGS)
|
362 | 362 |
|
363 | |
i3_msg_i3_msg_LDADD = \
|
|
363 |
i3_msg_LDADD = \
|
364 | 364 |
$(libi3_LIBS)
|
365 | 365 |
|
366 | |
i3_msg_i3_msg_SOURCES = \
|
|
366 |
i3_msg_SOURCES = \
|
367 | 367 |
i3-msg/main.c
|
368 | 368 |
|
369 | |
i3_nagbar_i3_nagbar_CFLAGS = \
|
|
369 |
i3_nagbar_CFLAGS = \
|
370 | 370 |
$(AM_CFLAGS) \
|
371 | 371 |
$(LIBSN_CFLAGS) \
|
372 | 372 |
$(libi3_CFLAGS)
|
373 | 373 |
|
374 | |
i3_nagbar_i3_nagbar_LDADD = \
|
|
374 |
i3_nagbar_LDADD = \
|
375 | 375 |
$(libi3_LIBS) \
|
376 | 376 |
$(LIBSN_LIBS) \
|
377 | 377 |
$(XCB_UTIL_CURSOR_LIBS)
|
378 | 378 |
|
379 | |
i3_nagbar_i3_nagbar_SOURCES = \
|
|
379 |
i3_nagbar_SOURCES = \
|
380 | 380 |
i3-nagbar/i3-nagbar-atoms.xmacro.h \
|
381 | 381 |
i3-nagbar/main.c
|
382 | 382 |
|
383 | |
i3bar_i3bar_CPPFLAGS = \
|
|
383 |
i3bar_CPPFLAGS = \
|
384 | 384 |
$(AM_CPPFLAGS) \
|
385 | 385 |
-I$(top_srcdir)/i3bar/include
|
386 | 386 |
|
387 | |
i3bar_i3bar_CFLAGS = \
|
|
387 |
i3bar_CFLAGS = \
|
388 | 388 |
$(AM_CFLAGS) \
|
389 | 389 |
$(libi3_CFLAGS) \
|
390 | 390 |
$(XCB_CFLAGS) \
|
|
392 | 392 |
$(PANGOCAIRO_CFLAGS) \
|
393 | 393 |
$(YAJL_CFLAGS)
|
394 | 394 |
|
395 | |
i3bar_i3bar_LDADD = \
|
|
395 |
i3bar_LDADD = \
|
396 | 396 |
$(libi3_LIBS) \
|
397 | 397 |
$(XCB_LIBS) \
|
398 | 398 |
$(XCB_UTIL_CURSOR_LIBS) \
|
|
400 | 400 |
$(PANGOCAIRO_LIBS) \
|
401 | 401 |
$(YAJL_LIBS)
|
402 | 402 |
|
403 | |
i3bar_i3bar_SOURCES = \
|
|
403 |
i3bar_SOURCES = \
|
404 | 404 |
i3bar/include/child.h \
|
405 | 405 |
i3bar/include/common.h \
|
406 | 406 |
i3bar/include/configuration.h \
|
|
423 | 423 |
i3bar/src/workspaces.c \
|
424 | 424 |
i3bar/src/xcb.c
|
425 | 425 |
|
426 | |
i3_config_wizard_i3_config_wizard_CFLAGS = \
|
|
426 |
i3_config_wizard_CFLAGS = \
|
427 | 427 |
$(AM_CFLAGS) \
|
428 | 428 |
$(libi3_CFLAGS) \
|
429 | 429 |
$(LIBSN_CFLAGS) \
|
430 | 430 |
$(XKBCOMMON_CFLAGS)
|
431 | 431 |
|
432 | |
i3_config_wizard_i3_config_wizard_LDADD = \
|
|
432 |
i3_config_wizard_LDADD = \
|
433 | 433 |
$(libi3_LIBS) \
|
434 | 434 |
$(LIBSN_LIBS) \
|
435 | 435 |
$(XCB_UTIL_KEYSYMS_LIBS) \
|
436 | 436 |
$(XKBCOMMON_LIBS)
|
437 | 437 |
|
438 | |
i3_config_wizard_i3_config_wizard_SOURCES = \
|
|
438 |
i3_config_wizard_SOURCES = \
|
439 | 439 |
i3-config-wizard/i3-config-wizard-atoms.xmacro.h \
|
440 | 440 |
i3-config-wizard/main.c \
|
441 | 441 |
i3-config-wizard/xcb.h
|
442 | 442 |
|
443 | |
i3_config_wizard_i3_config_wizard_DEPENDENCIES = \
|
|
443 |
i3_config_wizard_DEPENDENCIES = \
|
444 | 444 |
$(top_builddir)/libi3.a
|
445 | 445 |
|
446 | 446 |
test_inject_randr15_CPPFLAGS = \
|
4 | 4 |
AC_INIT([i3], [4.18.1], [https://github.com/i3/i3/issues])
|
5 | 5 |
# For AX_EXTEND_SRCDIR
|
6 | 6 |
AX_ENABLE_BUILDDIR
|
7 | |
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall no-dist-gzip dist-bzip2])
|
|
7 |
AM_INIT_AUTOMAKE([foreign -Wall no-dist-gzip dist-bzip2])
|
8 | 8 |
# Default to silent rules, use V=1 to get verbose compilation output.
|
9 | 9 |
AM_SILENT_RULES([yes])
|
10 | 10 |
# Make it possible to disable maintainer mode to disable re-generation of build
|
77 | 77 |
# Check for missing executables
|
78 | 78 |
my @binaries = qw(
|
79 | 79 |
@abs_top_builddir@/i3
|
80 | |
@abs_top_builddir@/i3bar/i3bar
|
81 | |
@abs_top_builddir@/i3-config-wizard/i3-config-wizard
|
82 | |
@abs_top_builddir@/i3-dump-log/i3-dump-log
|
83 | |
@abs_top_builddir@/i3-input/i3-input
|
84 | |
@abs_top_builddir@/i3-msg/i3-msg
|
85 | |
@abs_top_builddir@/i3-nagbar/i3-nagbar
|
|
80 |
@abs_top_builddir@/i3bar
|
|
81 |
@abs_top_builddir@/i3-config-wizard
|
|
82 |
@abs_top_builddir@/i3-dump-log
|
|
83 |
@abs_top_builddir@/i3-input
|
|
84 |
@abs_top_builddir@/i3-msg
|
|
85 |
@abs_top_builddir@/i3-nagbar
|
86 | 86 |
);
|
87 | 87 |
|
88 | 88 |
foreach my $binary (@binaries) {
|
|
102 | 102 |
}
|
103 | 103 |
|
104 | 104 |
$ENV{PATH} = join(':',
|
105 | |
'@abs_top_builddir@/i3-nagbar',
|
106 | |
'@abs_top_builddir@/i3-msg',
|
107 | |
'@abs_top_builddir@/i3-input',
|
108 | |
'@abs_top_builddir@/i3-dump-log',
|
109 | |
'@abs_top_builddir@/i3-config-wizard',
|
110 | |
'@abs_top_builddir@/i3bar',
|
111 | 105 |
'@abs_top_builddir@',
|
112 | 106 |
'@abs_top_srcdir@',
|
113 | 107 |
$ENV{PATH});
|
32 | 32 |
};
|
33 | 33 |
my @binaries = qw(
|
34 | 34 |
build/i3
|
35 | |
build/i3-config-wizard/i3-config-wizard
|
36 | |
build/i3-dump-log/i3-dump-log
|
37 | |
build/i3-input/i3-input
|
38 | |
build/i3-msg/i3-msg
|
39 | |
build/i3-nagbar/i3-nagbar
|
40 | |
build/i3bar/i3bar
|
|
35 |
build/i3-config-wizard
|
|
36 |
build/i3-dump-log
|
|
37 |
build/i3-input
|
|
38 |
build/i3-msg
|
|
39 |
build/i3-nagbar
|
|
40 |
build/i3bar
|
41 | 41 |
);
|
42 | 42 |
for my $binary (@binaries) {
|
43 | 43 |
check_spelling(slurp($binary), $binary_spelling_exceptions, sub {
|