[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/caml f04c2e4 14/14: Makefile: add uninstall targets
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/caml f04c2e4 14/14: Makefile: add uninstall targets |
Date: |
Tue, 24 Aug 2021 05:57:24 -0400 (EDT) |
branch: elpa/caml
commit f04c2e495c0bdb388dd7302f345235980c962ada
Author: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Commit: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Makefile: add uninstall targets
---
.gitignore | 1 +
Makefile | 15 ++++++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/.gitignore b/.gitignore
index 8220ec7..0f1f150 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@
/caml-autoloads.el
*.tgz
caml-mode.*/
+ocamltags
packages
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 41fa1c9..36c97ce 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,6 @@ FILES= caml-font.el caml.el camldebug.el \
inf-caml.el caml-help.el caml-types.el \
caml-xemacs.el caml-emacs.el
-INSTALL_FILES =
INSTALL_DIR ?= $(shell opam var share)/emacs/site-lisp
INSTALL_BIN ?= $(shell opam var bin)
@@ -52,7 +51,7 @@ endif
EMACS ?= emacs
INSTALL_MKDIR = mkdir -p
-INSTALL_DATA = $(CP)
+INSTALL_DATA = cp
INSTALL_RM_R = $(RM) -r
# Command for byte-compiling the files
@@ -77,13 +76,15 @@ install-el:
install:
@echo "Installing in $(INSTALL_DIR)..."
- if test -d $(INSTALL_DIR); then : ; \
- else $(INSTALL_MKDIR) $(INSTALL_DIR); fi
+ $(INSTALL_MKDIR) $(INSTALL_DIR)
$(INSTALL_DATA) $(FILES) $(INSTALL_DIR)
if [ -z "$(NOCOMPILE)" ]; then \
cd $(INSTALL_DIR); $(EMACS) --batch --eval '$(COMPILECMD)'; \
fi
+uninstall:
+ cd $(INSTALL_DIR) && $(INSTALL_RM_R) $(FILES) $(FILES:.el=.elc)
+
ocamltags: ocamltags.in
sed -e 's:@EMACS@:$(EMACS):' ocamltags.in >ocamltags
chmod a+x ocamltags
@@ -91,6 +92,9 @@ ocamltags: ocamltags.in
install-ocamltags: ocamltags
$(INSTALL_DATA) ocamltags $(INSTALL_BIN)/ocamltags
+uninstall-ocamltags:
+ $(INSTALL_RM_R) $(INSTALL_BIN)/ocamltags
+
tarball: $(TARBALL)
$(TARBALL): $(DIST_FILES)
$(INSTALL_MKDIR) $(DIST_NAME)
@@ -118,5 +122,6 @@ clean:
$(RM) -r $(TARBALL)
-.PHONY: install install-el ocamltags install-ocamltags \
+.PHONY: install uninstall install-el \
+ ocamltags install-ocamltags uninstall-ocamltags \
tarball submit compile-only clean
- [nongnu] elpa/caml 06c445b 06/14: Generate the OPAM file in the packages/ directory, (continued)
- [nongnu] elpa/caml 06c445b 06/14: Generate the OPAM file in the packages/ directory, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 5f26293 08/14: Makefile: only compile the elisp code as default target, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml ad39af1 09/14: Simplify the “install” make target, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml cf6a092 01/14: Put the groups in the 'languages standard group, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml aba3de4 05/14: Subtler detection of Emacs executable, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 7eec9fb 07/14: Makefile: replace DIST_DIR with DIST_NAME, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 372df7a 10/14: Makefile: add a “tarball” target for convenience, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 6d4f18e 11/14: Update caml.el header, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 38088c3 12/14: Ignore the “packages” symbolic link, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 6fe87ee 13/14: Update the OPAM file, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml f04c2e4 14/14: Makefile: add uninstall targets,
ELPA Syncer <=