build(striker-ui): don't copy make-related files and add distclean-local target

main
Tsu-ba-me 4 years ago
parent 7c1598575b
commit 4c215e404d
  1. 8
      striker-ui/Makefile.am

@ -109,7 +109,7 @@ all: out
# #
out: out:
-@echo "Copying required build files to build (current) directory." -@echo "Copying required build files to build (current) directory."
rsync -a $(srcdir)/* ./ find $(srcdir) -mindepth 1 -maxdepth 1 ! -name "[Mm]ake*" -exec rsync -a {} + ./
-@echo "Allow tools to write to files in the build directory." -@echo "Allow tools to write to files in the build directory."
chmod -R +w ./* chmod -R +w ./*
-@echo "Install node modules (dependencies) prior to building." -@echo "Install node modules (dependencies) prior to building."
@ -118,8 +118,6 @@ out:
sed 's@=.*@=/cgi-bin@' <env.development >.env.local sed 's@=.*@=/cgi-bin@' <env.development >.env.local
-@echo "Build front-end project." -@echo "Build front-end project."
npm run build npm run build
-@echo "Clean up files copied for building."
find . -not \( -name $(outdir) -prune \) -exec rm -rf {} +
install-data-hook: install-data-hook:
-@echo "Place build output files." -@echo "Place build output files."
@ -130,3 +128,7 @@ install-data-hook:
uninstall-hook: uninstall-hook:
-@echo "Remove all installed files of the current module." -@echo "Remove all installed files of the current module."
(cd $(DESTDIR)/$(htmldir); rm -rf index.html _next pngs) (cd $(DESTDIR)/$(htmldir); rm -rf index.html _next pngs)
distclean-local:
-@echo "Clean up files copied for building."
rm -rf *

Loading…
Cancel
Save