all: Move the multi-configuration file reading routine to a common helper
Based on Emil's (xexaxo) feedback, we now have a common.sh file that contains the implementation of the routine to read all config files for kdump/pstore, and we use Makefile to join the files, having the same implemention in all users. Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
11
Makefile
11
Makefile
@ -10,7 +10,16 @@ sysctldir := $(shell pkg-config --define-variable=prefix=$(prefix) --variable=sy
|
||||
dracutmodulesdir := $(shell pkg-config --define-variable=prefix=$(prefix) --variable=dracutmodulesdir dracut 2>/dev/null \
|
||||
|| echo $(libdir)/dracut/modules.d/)
|
||||
|
||||
all:
|
||||
kdump-load.sh: kdump-load.header common.sh kdump-load.sh.in
|
||||
cat $^ > $@
|
||||
|
||||
module-setup.sh: module-setup.header common.sh module-setup.sh.in
|
||||
cat $^ > $@
|
||||
|
||||
save-dumps.sh: save-dumps.header common.sh save-dumps.sh.in
|
||||
cat $^ > $@
|
||||
|
||||
all: kdump-load.sh module-setup.sh save-dumps.sh
|
||||
|
||||
install: all
|
||||
install -D -m0644 kdump-init.service $(DESTDIR)$(systemdunitsdir)/kdump-init.service
|
||||
|
||||
Reference in New Issue
Block a user