From 88590e3e1733d777eff3d3ff6baea3935fd3b400 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 3 Jun 2021 16:09:51 -0400 Subject: [PATCH] build(striker-ui): add install steps for web UI --- striker-ui/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/striker-ui/Makefile.am b/striker-ui/Makefile.am index 57f6ae54..e78cfaca 100644 --- a/striker-ui/Makefile.am +++ b/striker-ui/Makefile.am @@ -99,6 +99,7 @@ EXTRA_DIST = \ package-lock.json htmldir = $(localstatedir)/www/html +outdir = out # Note: the input file to the generate endpoint prefix step must exist in # EXTRA_DIST. @@ -112,3 +113,11 @@ build: sed 's@=.*@=/cgi-bin@' .env.local -@echo "Build front-end project." npm run build + +install-data-hook: + -@echo "Print working directory." + pwd + -@echo "Place build output files." + cp -r $(outdir)/index.html $(outdir)/_next $(DESTDIR)/$(htmldir)/ + -@echo "Create symlink to images to enable borrowing icon etc. without duplicating." + (cd $(DESTDIR)/$(htmldir); $(LN_S) skins/alteeve/images pngs)