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_carrier \
42 khatus_sensor_net_wifi_status \
44 khatus_sensor_screen_brightness \
45 khatus_sensor_temperature \
46 khatus_sensor_volume \
48 BASH_EXECUTABLES
:= $(foreach exe
,$(BASH_EXECUTABLE_NAMES
),bin
/$(exe
))
49 EXECUTABLES
:= $(AWK_EXECUTABLES
) $(BASH_EXECUTABLES
)
52 echo
'#! $(PATH_TO_AWK) -f' > $@
&& \
53 echo
'BEGIN {Node = Node ? Node : "$(shell hostname)"}' >> $@
&& \
54 echo
'BEGIN {Module = "$(notdir $@)"}' >> $@
&& \
64 define GEN_BASH_EXE_RULE
65 bin
/$(1) : src
/bash
/exe
/$(1).sh
81 @
$(foreach filename
,$(wildcard bin
/*),cp
-p
"$(filename)" "$(PREFIX)/$(filename)"; )
84 @
$(foreach filename
,$(wildcard $(PREFIX
)/bin
/khatus
*),rm "$(filename)"; )
100 #-----------------------------------------------------------------------------
102 #-----------------------------------------------------------------------------
103 $(foreach exe
,$(BASH_EXECUTABLE_NAMES
),$(eval
$(call GEN_BASH_EXE_RULE
,$(exe
))))
105 #-----------------------------------------------------------------------------
107 #-----------------------------------------------------------------------------
109 src
/awk
/exe
/bar.awk \
110 src
/awk
/lib
/cache.awk \
111 src
/awk
/lib
/str.awk \
112 src
/awk
/lib
/msg.awk \
116 bin
/khatus_actuate_alert_to_notify_send
: \
117 src
/awk
/exe
/actuate_alert_to_notify_send.awk \
118 src
/awk
/lib
/str.awk \
122 bin
/khatus_actuate_device_add_to_automount
: \
123 src
/awk
/exe
/actuate_device_add_to_automount.awk \
124 src
/awk
/lib
/str.awk \
128 bin
/khatus_actuate_status_bar_to_xsetroot_name
: \
129 src
/awk
/exe
/actuate_status_bar_to_xsetroot_name.awk \
130 src
/awk
/lib
/str.awk \
134 bin
/khatus_gen_bar_make_status
: \
135 src
/awk
/exe
/gen_bar_make_status.awk
138 bin
/khatus_monitor_devices
: \
139 src
/awk
/exe
/monitor_devices.awk \
140 src
/awk
/lib
/str.awk \
144 bin
/khatus_monitor_energy
: \
145 src
/awk
/exe
/monitor_energy.awk \
146 src
/awk
/lib
/str.awk \
147 src
/awk
/lib
/msg.awk \
151 bin
/khatus_monitor_errors
: \
152 src
/awk
/exe
/monitor_errors.awk \
153 src
/awk
/lib
/str.awk \
157 bin
/khatus_parse_bluetoothctl_show
: \
158 src
/awk
/exe
/parse_bluetoothctl_show.awk \
162 bin
/khatus_parse_df_pcent
: \
163 src
/awk
/exe
/parse_df_pcent.awk \
167 bin
/khatus_parse_fan_file
: \
168 src
/awk
/exe
/parse_fan_file.awk \
172 bin
/khatus_parse_free
: \
173 src
/awk
/exe
/parse_free.awk \
177 bin
/khatus_parse_ip_addr
: \
178 src
/awk
/exe
/parse_ip_addr.awk \
182 bin
/khatus_parse_iwconfig
: \
183 src
/awk
/exe
/parse_iwconfig.awk \
187 bin
/khatus_parse_loadavg_file
: \
188 src
/awk
/exe
/parse_loadavg_file.awk \
192 # Order of dependencies is important for khatus_parse_noaa_api!
193 # parse_hxpipe MUST appear before parse_noaa_api, because the order in
194 # which they match lines matters!
195 bin
/khatus_parse_noaa_api
: \
196 src
/awk
/lib
/parse_hxpipe.awk \
197 src
/awk
/exe
/parse_noaa_api.awk \
198 src
/awk
/lib
/msg.awk \
202 bin
/khatus_parse_mpd_status_currentsong
: \
203 src
/awk
/exe
/parse_mpd_status_currentsong.awk \
207 bin
/khatus_parse_pactl_list_sinks
: \
208 src
/awk
/exe
/parse_pactl_list_sinks.awk \
212 bin
/khatus_parse_ps
: \
213 src
/awk
/exe
/parse_ps.awk \
217 bin
/khatus_parse_sys_block_stat
: \
218 src
/awk
/exe
/parse_sys_block_stat.awk \
222 bin
/khatus_parse_udevadm_monitor_block
: \
223 src
/awk
/exe
/parse_udevadm_monitor_block.awk \
227 bin
/khatus_parse_upower
: \
228 src
/awk
/exe
/parse_upower.awk \