2020-05-30 00:01:28 +02:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2012-08-25 20:14:51 +02:00
|
|
|
INSTALL_FILES=$(wildcard archiso/initcpio/install/*)
|
|
|
|
HOOKS_FILES=$(wildcard archiso/initcpio/hooks/*)
|
|
|
|
SCRIPT_FILES=$(wildcard archiso/initcpio/script/*)
|
|
|
|
|
|
|
|
INSTALL_DIR=$(DESTDIR)/usr/lib/initcpio/install
|
|
|
|
HOOKS_DIR=$(DESTDIR)/usr/lib/initcpio/hooks
|
|
|
|
SCRIPT_DIR=$(DESTDIR)/usr/lib/initcpio
|
|
|
|
|
2020-05-30 00:01:28 +02:00
|
|
|
DOC_FILES=$(wildcard docs/*) $(wildcard *.rst)
|
2012-10-13 19:40:41 +02:00
|
|
|
|
|
|
|
DOC_DIR=$(DESTDIR)/usr/share/doc/archiso
|
|
|
|
|
|
|
|
|
2012-08-03 22:35:08 +02:00
|
|
|
all:
|
|
|
|
|
2020-07-16 13:40:27 +02:00
|
|
|
check:
|
|
|
|
shellcheck -s bash archiso/mkarchiso \
|
|
|
|
scripts/run_archiso.sh \
|
|
|
|
$(INSTALL_FILES) \
|
|
|
|
$(wildcard configs/*/build.sh) \
|
|
|
|
configs/releng/airootfs/root/.automated_script.sh \
|
|
|
|
configs/releng/airootfs/usr/local/bin/choose-mirror
|
|
|
|
shellcheck -s dash $(HOOKS_FILES) $(SCRIPT_FILES)
|
|
|
|
|
2020-07-29 18:14:59 +02:00
|
|
|
install: install-program install-examples install-doc
|
2012-08-03 22:35:08 +02:00
|
|
|
|
|
|
|
install-program:
|
2020-05-30 00:01:28 +02:00
|
|
|
install -vDm 755 archiso/mkarchiso -t "$(DESTDIR)/usr/bin/"
|
|
|
|
install -vDm 755 scripts/run_archiso.sh "$(DESTDIR)/usr/bin/run_archiso"
|
2012-08-03 22:35:08 +02:00
|
|
|
|
2012-08-25 20:14:51 +02:00
|
|
|
install-initcpio:
|
|
|
|
install -d $(SCRIPT_DIR) $(HOOKS_DIR) $(INSTALL_DIR)
|
|
|
|
install -m 755 -t $(SCRIPT_DIR) $(SCRIPT_FILES)
|
|
|
|
install -m 644 -t $(HOOKS_DIR) $(HOOKS_FILES)
|
|
|
|
install -m 644 -t $(INSTALL_DIR) $(INSTALL_FILES)
|
2012-08-03 22:35:08 +02:00
|
|
|
|
|
|
|
install-examples:
|
|
|
|
install -d -m 755 $(DESTDIR)/usr/share/archiso/
|
2012-10-05 18:18:18 +02:00
|
|
|
cp -a --no-preserve=ownership configs $(DESTDIR)/usr/share/archiso/
|
2012-08-03 22:35:08 +02:00
|
|
|
|
|
|
|
install-doc:
|
2020-05-30 00:01:28 +02:00
|
|
|
install -vDm 644 $(DOC_FILES) -t $(DOC_DIR)
|
2012-08-03 22:35:08 +02:00
|
|
|
|
2020-07-16 13:40:27 +02:00
|
|
|
.PHONY: check install install-program install-initcpio install-examples install-doc
|