mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
12ca199bd7
The depmod.d configuration order/handling aligns with existing tools such as sysctl.d, even though there is no mention in the manual. Reorder the list in SYNOPSIS and add a bit of verbiage describing things. Section is inspired by sysctl.d(5) and sysctl(8). Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
29 lines
734 B
Makefile
29 lines
734 B
Makefile
MAN5 = depmod.d.5 modprobe.d.5 modules.dep.5
|
|
MAN8 = kmod.8 depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8
|
|
MAN_STUB = modules.dep.bin.5
|
|
|
|
AM_V_SCDOC = $(AM_V_SCDOC_$(V))
|
|
AM_V_SCDOC_ = $(AM_V_SCDOC_$(AM_DEFAULT_VERBOSITY))
|
|
AM_V_SCDOC_0 = @echo " SCDOC " $@;
|
|
|
|
if BUILD_TOOLS
|
|
dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB)
|
|
endif
|
|
|
|
EXTRA_DIST = $(MAN5:%.5=%.5.scd) $(MAN8:%.8=%.8.scd)
|
|
CLEANFILES = $(filter-out $(MAN_STUB), $(dist_man_MANS))
|
|
|
|
define generate_manpage
|
|
$(AM_V_SCDOC)cat $< | \
|
|
sed -e 's|@SYSCONFDIR@|$(sysconfdir)|g' | \
|
|
sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' | \
|
|
sed -e 's|@MODULE_DIRECTORY@|$(module_directory)|g' | \
|
|
$(SCDOC) > $@
|
|
endef
|
|
|
|
%.5: %.5.scd
|
|
$(generate_manpage)
|
|
|
|
%.8: %.8.scd
|
|
$(generate_manpage)
|