123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #
- # SPDX-License-Identifier: GPL-3.0-or-later
- INSTALL_FILES=$(wildcard parabolaiso/initcpio/install/*)
- HOOKS_FILES=$(wildcard parabolaiso/initcpio/hooks/*)
- SCRIPT_FILES=$(wildcard parabolaiso/initcpio/script/*)
- INSTALL_DIR=$(DESTDIR)/usr/lib/initcpio/install
- HOOKS_DIR=$(DESTDIR)/usr/lib/initcpio/hooks
- SCRIPT_DIR=$(DESTDIR)/usr/lib/initcpio
- DOC_FILES=$(wildcard docs/*) $(wildcard *.rst)
- DOC_DIR=$(DESTDIR)/usr/share/doc/parabolaiso
- all:
- check: lint
- lint:
- shellcheck -s bash parabolaiso/mkparabolaiso \
- $(wildcard scripts/*.sh) \
- $(INSTALL_FILES) \
- $(wildcard configs/*/build.sh) \
- $(wildcard configs/*/profiledef.sh) \
- configs/releng/airootfs/root/.automated_script.sh \
- configs/releng/airootfs/usr/local/bin/choose-mirror \
- configs/releng/airootfs/usr/local/bin/livecd-sound \
- configs/releng-openrc/airootfs/root/.automated_script.sh \
- configs/releng-openrc/airootfs/etc/local.d/pacman-init.start \
- configs/releng-openrc/airootfs/etc/local.d/choose-mirror.start \
- configs/releng-openrc/airootfs/etc/local.d/etc-pacman.d-gnupg.start \
- configs/releng-openrc/airootfs/etc/NetworkManager/dispatcher.d/reflector \
- configs/releng-openrc/airootfs/usr/local/bin/choose-mirror \
- configs/lxde-openrc/airootfs/root/.automated_script.sh \
- configs/lxde-openrc/airootfs/root/.keymap.sh \
- configs/lxde-openrc/airootfs/root/.language.sh \
- configs/lxde-openrc/airootfs/etc/local.d/pacman-init.start \
- configs/lxde-openrc/airootfs/etc/local.d/choose-mirror.start \
- configs/lxde-openrc/airootfs/etc/local.d/etc-pacman.d-gnupg.start \
- configs/lxde-openrc/airootfs/etc/NetworkManager/dispatcher.d/reflector \
- configs/lxde-openrc/airootfs/usr/local/bin/choose-mirror
- shellcheck -s dash $(HOOKS_FILES) $(SCRIPT_FILES)
- install: install-program install-examples install-doc
- install-program:
- install -vDm 755 parabolaiso/mkparabolaiso -t "$(DESTDIR)/usr/bin/"
- install -vDm 755 scripts/run_parabolaiso.sh "$(DESTDIR)/usr/bin/run_parabolaiso"
- 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)
- install-examples:
- install -d -m 755 $(DESTDIR)/usr/share/parabolaiso/
- cp -a --no-preserve=ownership configs $(DESTDIR)/usr/share/parabolaiso/
- install-doc:
- install -vDm 644 $(DOC_FILES) -t $(DOC_DIR)
- .PHONY: check install install-program install-initcpio install-examples install-doc lint
|