diff options
author | David P <megver83@parabola.nu> | 2021-08-17 05:02:06 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2021-08-17 05:02:06 -0400 |
commit | 239f1b448d42cc7341a3ed8fc16f91312b118c6c (patch) | |
tree | d27041757dbdc2645f505861a5f1fb1bf94212eb | |
parent | 03e19b7bcde6f7083aeaff6994d113ec9d06dcc3 (diff) |
add Makefile
Signed-off-by: David P <megver83@parabola.nu>
-rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..24ca8c9 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +# +# SPDX-License-Identifier: GPL-3.0-or-later + +PREFIX ?= /usr/local +DOC_DIR=$(DESTDIR)$(PREFIX)/share/doc/parabolaiso-configs +PROFILE_DIR=$(DESTDIR)$(PREFIX)/share/parabolaiso/configs + +DOC_FILES=$(wildcard *.rst) +SCRIPT_FILES=$(wildcard */profiledef.sh) $(wildcard */airootfs/usr/local/bin/*) +PROFILES=releng* lxde-openrc + +all: + +check: shellcheck + +shellcheck: + shellcheck -s bash $(SCRIPT_FILES) + +install: install-profiles install-doc + +install-profiles: + install -d -m 755 $(PROFILE_DIR) + cp -a --no-preserve=ownership $(PROFILES) $(PROFILE_DIR)/ + +install-doc: + install -vDm 644 $(DOC_FILES) -t $(DOC_DIR) + +.PHONY: check install install-doc install-profiles shellcheck |