From 5791fa75e2cb30e41817009b737d3bf2870f1b7e Mon Sep 17 00:00:00 2001 From: Lee Hughes <33lockdown33@protonmail.com> Date: Sun, 21 Jun 2020 21:53:23 +0100 Subject: [PATCH] added install and clean targets update flake.nix --- Makefile | 8 ++++++++ flake.nix | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7524b3b0a6..625bf41ef1 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,14 @@ $(NIXPKGS_MANUAL_OUT): $(NIXPKGS_MANUAL_IN) bootstrapify-docbook.sh bootstrapify all: $(HTML) favicon.png favicon.ico robots.txt $(subst .png,-small.png,$(filter-out %-small.png,$(wildcard images/screenshots/*))) +install: + fd -I -t d -x mkdir -p build/{} + fd -I -t f -t l '(.*?)\.(gpg|svg|xml|ico|css|jpg|gif|doc|pdf|html|png|js|cast|ico|robots.txt)$$' -x cp -a {} build/{} + +clean: + rm -rf build + + robots.txt: $(HTML) echo "Users-agent: *" >> $@ diff --git a/flake.nix b/flake.nix index a863eeef77..29260c5cdf 100644 --- a/flake.nix +++ b/flake.nix @@ -70,8 +70,9 @@ ]; installPhase = '' + make install mkdir $out - cp -prd . $out/ + cp -prd build/. $out/ ''; shellHook = ''