mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
feat: initial upload
Initial public release
This commit is contained in:
commit
85a5bd66e0
30 changed files with 943 additions and 0 deletions
26
Makefile
Normal file
26
Makefile
Normal file
|
@ -0,0 +1,26 @@
|
|||
.DEFAULT_GOAL := build
|
||||
CONTAINER_NAME = unvr-nas:builder
|
||||
|
||||
setup:
|
||||
sudo modprobe loop; \
|
||||
sudo modprobe binfmt_misc
|
||||
|
||||
build: setup
|
||||
@set -e; \
|
||||
for file in `ls ./scripts/[0-99]*.sh`; \
|
||||
do \
|
||||
bash $${file}; \
|
||||
done \
|
||||
|
||||
clean: mountclean
|
||||
sudo rm -rf $(CURDIR)/BuildEnv; \
|
||||
docker ps -a | awk '{ print $$1,$$2 }' | grep $(CONTAINER_NAME) | awk '{print $$1 }' | xargs -I {} docker rm {};
|
||||
|
||||
distclean: clean
|
||||
docker rmi $(CONTAINER_NAME) -f; \
|
||||
rm -rf $(CURDIR)/downloads $(CURDIR)/output
|
||||
|
||||
mountclean:
|
||||
sudo umount $(CURDIR)/BuildEnv/rootfs/boot; \
|
||||
sudo umount $(CURDIR)/BuildEnv/rootfs; \
|
||||
sudo losetup -D
|
Loading…
Add table
Add a link
Reference in a new issue