-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
103 lines (77 loc) · 1.82 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
comma := ,
empty :=
space := $(empty) $(empty)
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-pluginsdir="$$dc_install_base/$(pluginsdir)" \
--disable-debug
ACLOCAL_AMFLAGS = -I m4 -I src/libgwater ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
noinst_LTLIBRARIES =
plugins_LTLIBRARIES =
man1_MANS =
man5_MANS =
BUILT_SOURCES =
EXTRA_DIST =
CLEANFILES =
XSLTPROC_CONDITIONS = \
installation
AM_CPPFLAGS += \
-D LOCALEDIR=\"$(localedir)\" \
-I $(srcdir)/src/ \
-I $(builddir)/src/
AM_CFLAGS += \
$(J4STATUS_PLUGIN_CFLAGS)
AM_XSLTPROCFLAGS += \
--path "$(srcdir)/src/" \
--path "$(builddir)/src/"
#
# Plugins
#
if ENABLE_ALSA_INPUT
include alsa/alsa.mk
endif
if ENABLE_I3FOCUS_INPUT
include i3focus/i3focus.mk
endif
if ENABLE_MPRIS_INPUT
include mpris/mpris.mk
endif
if ENABLE_IW_INPUT
include iw/iw.mk
endif
if ENABLE_FSINFO_INPUT
include fsinfo/fsinfo.mk
endif
if ENABLE_CPU_INPUT
include cpu/cpu.mk
endif
if ENABLE_MEM_INPUT
include mem/mem.mk
endif
if ENABLE_BACKLIGHT_INPUT
include backlight/backlight.mk
endif
if ENABLE_INOTIFY_INPUT
include inotify/inotify.mk
endif
if ENABLE_NM_INPUT
include nm/nm.mk
endif
include src/man.mk
-include local-rules.mk
#
# Hooks
#
install-data-hook: la-files-install-hook
uninstall-pluginsLTLIBRARIES uninstall-hook: la-files-uninstall-hook
j4_remove_la = $(if $(strip $($(1)_LTLIBRARIES)),( cd $(DESTDIR)$($(1)dir) && rm -f $(notdir $($(1)_LTLIBRARIES)) ))
j4_remove_so_from_la = $(if $(strip $($(1)_LTLIBRARIES)),for la in $(notdir $($(1)_LTLIBRARIES)); do \
$(INSTALL) "$(abs_builddir)/$${la%.la}/$(LT_OBJDIR)"/$${la}i "$(DESTDIR)$($(1)dir)"/$${la}; \
done )
# *.la files cleanup
la-files-install-hook:
$(call j4_remove_la,plugins)
# Remove shared object files at uninstall since
# we remove *.la files at install
la-files-uninstall-hook:
$(call j4_remove_so_from_la,plugins)