Makefile: add convenience 'devel-uninstall' target
Add a simple convenience target to "undo" what the devel-install did (creating a symlink to ~/.local/share/cockpit), i.e. simply removing that symlink. Suggested by: Christopher Snyder
This commit is contained in:
parent
9357e55fc6
commit
fde873e0bd
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
|
@ -89,6 +89,11 @@ devel-install: $(WEBPACK_TEST)
|
||||||
mkdir -p ~/.local/share/cockpit
|
mkdir -p ~/.local/share/cockpit
|
||||||
ln -s `pwd`/dist ~/.local/share/cockpit/$(PACKAGE_NAME)
|
ln -s `pwd`/dist ~/.local/share/cockpit/$(PACKAGE_NAME)
|
||||||
|
|
||||||
|
# assumes that there was symlink set up using the above devel-install target,
|
||||||
|
# and removes it
|
||||||
|
devel-uninstall:
|
||||||
|
rm -f ~/.local/share/cockpit/$(PACKAGE_NAME)
|
||||||
|
|
||||||
print-version:
|
print-version:
|
||||||
@echo "$(VERSION)"
|
@echo "$(VERSION)"
|
||||||
|
|
||||||
|
|
@ -191,4 +196,4 @@ $(NODE_MODULES_TEST): package.json
|
||||||
env -u NODE_ENV npm install
|
env -u NODE_ENV npm install
|
||||||
env -u NODE_ENV npm prune
|
env -u NODE_ENV npm prune
|
||||||
|
|
||||||
.PHONY: all clean install devel-install print-version dist node-cache rpm check vm update-po print-vm
|
.PHONY: all clean install devel-install print-version dist node-cache rpm check vm update-po print-vm devel-uninstall
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue