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

Loading…
Cancel
Save