From 9bb3e30a4698478c7e77eea0c64ef2da51a73545 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 27 Sep 2021 17:01:25 +0200 Subject: [PATCH] Fix building $(srcdir)/static Fixes mv: cannot move './static/bootstrap-4.3.1-dist' to './static/bootstrap/bootstrap-4.3.1-dist': Directory not empty when 'make' is called more than once. --- src/root/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/root/Makefile.am b/src/root/Makefile.am index 640296b1..163b96e0 100644 --- a/src/root/Makefile.am +++ b/src/root/Makefile.am @@ -22,9 +22,11 @@ nobase_hydra_DATA = $(EXTRA_DIST) all: mkdir -p $(srcdir)/static/js unzip -u -d $(srcdir)/static $(BOOTSTRAP) + rm -rf $(srcdir)/static/bootstrap mv $(srcdir)/static/$(basename $(BOOTSTRAP)) $(srcdir)/static/bootstrap unzip -u -d $(srcdir)/static/js $(FLOT) unzip -u -d $(srcdir)/static $(FONTAWESOME) + rm -rf $(srcdir)/static/fontawesome mv $(srcdir)/static/$(basename $(FONTAWESOME)) $(srcdir)/static/fontawesome install-data-local: $(ZIPS)