1 MAKEFLAGS
:= --no-builtin-rules
4 PATH_TO_AWK
:= /usr
/bin
/awk
7 bin
/khatus_actuate_alert_to_notify_send \
8 bin
/khatus_actuate_device_add_to_automount \
9 bin
/khatus_actuate_status_bar_to_xsetroot_name \
10 bin
/khatus_gen_bar_make_status \
11 bin
/khatus_monitor_devices \
12 bin
/khatus_monitor_energy \
13 bin
/khatus_monitor_errors \
14 bin
/khatus_parse_bluetoothctl_show \
15 bin
/khatus_parse_df_pcent \
16 bin
/khatus_parse_fan_file \
17 bin
/khatus_parse_free \
18 bin
/khatus_parse_ip_addr \
19 bin
/khatus_parse_iwconfig \
20 bin
/khatus_parse_loadavg_file \
21 bin
/khatus_parse_noaa_api \
22 bin
/khatus_parse_mpd_status_currentsong \
23 bin
/khatus_parse_pactl_list_sinks \
25 bin
/khatus_parse_sys_block_stat \
26 bin
/khatus_parse_udevadm_monitor_block \
27 bin
/khatus_parse_upower
28 BASH_EXECUTABLE_NAMES
:= \
30 khatus_sensor_bluetooth_power \
31 khatus_sensor_datetime \
32 khatus_sensor_devices \
33 khatus_sensor_disk_io \
34 khatus_sensor_disk_space \
35 khatus_sensor_energy \
37 khatus_sensor_loadavg \
38 khatus_sensor_memory \
40 khatus_sensor_net_addr_io \
41 khatus_sensor_net_wifi_status \
43 khatus_sensor_screen_brightness \
44 khatus_sensor_temperature \
45 khatus_sensor_volume \
47 BASH_EXECUTABLES
:= $(foreach exe
,$(BASH_EXECUTABLE_NAMES
),bin
/$(exe
))
48 EXECUTABLES
:= $(AWK_EXECUTABLES
) $(BASH_EXECUTABLES
)
51 echo
'#! $(PATH_TO_AWK) -f' > $@
&& \
52 echo
'BEGIN {Node = Node ? Node : "$(shell hostname)"}' >> $@
&& \
53 echo
'BEGIN {Module = "$(notdir $@)"}' >> $@
&& \
63 define GEN_BASH_EXE_RULE
64 bin
/$(1) : src
/bash
/exe
/$(1).sh
80 @
$(foreach filename
,$(wildcard bin
/*),cp
-p
"$(filename)" "$(PREFIX)/$(filename)"; )
83 @
$(foreach filename
,$(wildcard $(PREFIX
)/bin
/khatus
*),rm "$(filename)"; )
99 #-----------------------------------------------------------------------------
101 #-----------------------------------------------------------------------------
102 $(foreach exe
,$(BASH_EXECUTABLE_NAMES
),$(eval
$(call GEN_BASH_EXE_RULE
,$(exe
))))
104 #-----------------------------------------------------------------------------
106 #-----------------------------------------------------------------------------
108 src
/awk
/exe
/bar.awk \
109 src
/awk
/lib
/cache.awk \
110 src
/awk
/lib
/str.awk \
111 src
/awk
/lib
/msg.awk \
115 bin
/khatus_actuate_alert_to_notify_send
: \
116 src
/awk
/exe
/actuate_alert_to_notify_send.awk \
117 src
/awk
/lib
/str.awk \
121 bin
/khatus_actuate_device_add_to_automount
: \
122 src
/awk
/exe
/actuate_device_add_to_automount.awk \
123 src
/awk
/lib
/str.awk \
127 bin
/khatus_actuate_status_bar_to_xsetroot_name
: \
128 src
/awk
/exe
/actuate_status_bar_to_xsetroot_name.awk \
129 src
/awk
/lib
/str.awk \
133 bin
/khatus_gen_bar_make_status
: \
134 src
/awk
/exe
/gen_bar_make_status.awk
137 bin
/khatus_monitor_devices
: \
138 src
/awk
/exe
/monitor_devices.awk \
139 src
/awk
/lib
/str.awk \
143 bin
/khatus_monitor_energy
: \
144 src
/awk
/exe
/monitor_energy.awk \
145 src
/awk
/lib
/str.awk \
146 src
/awk
/lib
/msg.awk \
150 bin
/khatus_monitor_errors
: \
151 src
/awk
/exe
/monitor_errors.awk \
152 src
/awk
/lib
/str.awk \
156 bin
/khatus_parse_bluetoothctl_show
: \
157 src
/awk
/exe
/parse_bluetoothctl_show.awk \
161 bin
/khatus_parse_df_pcent
: \
162 src
/awk
/exe
/parse_df_pcent.awk \
166 bin
/khatus_parse_fan_file
: \
167 src
/awk
/exe
/parse_fan_file.awk \
171 bin
/khatus_parse_free
: \
172 src
/awk
/exe
/parse_free.awk \
176 bin
/khatus_parse_ip_addr
: \
177 src
/awk
/exe
/parse_ip_addr.awk \
181 bin
/khatus_parse_iwconfig
: \
182 src
/awk
/exe
/parse_iwconfig.awk \
186 bin
/khatus_parse_loadavg_file
: \
187 src
/awk
/exe
/parse_loadavg_file.awk \
191 # Order of dependencies is important for khatus_parse_noaa_api!
192 # parse_hxpipe MUST appear before parse_noaa_api, because the order in
193 # which they match lines matters!
194 bin
/khatus_parse_noaa_api
: \
195 src
/awk
/lib
/parse_hxpipe.awk \
196 src
/awk
/exe
/parse_noaa_api.awk \
197 src
/awk
/lib
/msg.awk \
201 bin
/khatus_parse_mpd_status_currentsong
: \
202 src
/awk
/exe
/parse_mpd_status_currentsong.awk \
206 bin
/khatus_parse_pactl_list_sinks
: \
207 src
/awk
/exe
/parse_pactl_list_sinks.awk \
211 bin
/khatus_parse_ps
: \
212 src
/awk
/exe
/parse_ps.awk \
216 bin
/khatus_parse_sys_block_stat
: \
217 src
/awk
/exe
/parse_sys_block_stat.awk \
221 bin
/khatus_parse_udevadm_monitor_block
: \
222 src
/awk
/exe
/parse_udevadm_monitor_block.awk \
226 bin
/khatus_parse_upower
: \
227 src
/awk
/exe
/parse_upower.awk \