build(striker-ui): rename target clean->clean-build to avoid conflict with default clean

main
Tsu-ba-me 4 years ago
parent 49d896037a
commit cf5abee7bd
  1. 8
      striker-ui/Makefile.am

@ -32,7 +32,7 @@ $(nodemodulesdir):
# call.
#
.PHONY: build
build: clean $(nodemodulesdir)
build: clean-build $(nodemodulesdir)
-@echo "Build web UI."
npm run build
-@echo "Stage only the build output directory."
@ -44,8 +44,8 @@ build: clean $(nodemodulesdir)
#
# Note: this target is strictly used in case of rebuilding; use
# maintainer-clean instead to restore the repo to a clean state.
.PHONY: clean
clean:
.PHONY: clean-build
clean-build:
-@echo "Clean up build output files to prepare for rebuild."
rm -rf $(nextoutdir) $(nextbuilddir)
@ -59,7 +59,7 @@ uninstall-hook:
-@echo "Remove all installed files of the current module."
(cd $(DESTDIR)/$(htmldir); rm -rf $(outindexfile) $(outjsmodulesdir) $(outimagesdir))
maintainer-clean-local: clean
maintainer-clean-local: clean-build
-@echo "Clean up node modules."
rm -rf $(nodemodulesdir)
-@echo "Since the build output directory is removed, restore it to keep local repo clean."

Loading…
Cancel
Save