emacs-compat/0001-Add-install-target.patch
Björn Bidar 3a56fd8a00 - Remove use deprecated install_info macro's
- Rebase 0001-Add-install-target.patch against new upstream version
- Update to version 30.0.0.0:
  * compat-28: Mark =subr-native-elisp-p= as obsolete (renamed in Emacs 30).
  * compat-30: New function =char-to-name=.
  * compat-30: New function =obarray-clear=.
  * compat-30: New function =interpreted-function-p=.
  * compat-30: New function =primitive-function-p=.
  * compat-30: New function =closurep=.
  * compat-30: Add extended function =sort= with keyword arguments.
  * compat-30: New function =value<=.
  * compat-30: Add extended =copy-tree= with support for copying records with
               non-nil optional second argument.
  * compat-30: New macro =static-if=.
  * compat-30: New alias =drop=.
  * compat-30: New function =merge-ordered-lists=.
  * compat-30: New variables =completion-lazy-hilit= and =completion-lazy-hilit-fn=
               and new function =completion-lazy-hilit=.
  * compat-30: New function =require-with-check=.
  * compat-30: New functions =find-buffer= and =get-truename-buffer=.
  * compat-30: Add extended =completion-metadata-get= with support for
               =completion-category-overrides= and =completion-extra-properties=.

OBS-URL: https://build.opensuse.org/package/show/editors/emacs-compat?expand=0&rev=10
2024-08-03 16:42:37 +00:00

78 lines
1.9 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@thaodan.de>
Date: Wed, 27 Sep 2023 00:25:31 +0300
Subject: [PATCH] Add install target
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
---
Makefile | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 3f298c9cd5f991fa394749215e4ec3665434ad9a..9d368d669d3f1d21486ed93bf3ac77c1625adde8 100644
--- a/Makefile
+++ b/Makefile
@@ -29,20 +29,34 @@
### Code:
.POSIX:
-.PHONY: all compile force-compile test clean check
+.PHONY: all compile force-compile test clean check install
.SUFFIXES: .el .elc
+DESTDIR ?=
+PREFIX ?= /usr
+DATADIR ?= $(PREFIX)/share
+ELDIR ?= $(DATADIR)/emacs/site-lisp
+INFODIR ?= $(DATADIR)/info
+
EMACS = emacs
MAKEINFO = makeinfo
-BYTEC = compat-25.elc \
+GZIP = gzip
+INSTALL_INFO = install-info
+RUNTIME = compat-25.elc \
compat-26.elc \
compat-27.elc \
compat-28.elc \
compat-29.elc \
compat-30.elc \
compat.elc \
+ compat.elc
+DEVELOPMENT = \
compat-macs.elc \
compat-tests.elc
+BYTEC = $(RUNTIME) \
+ $(DEVELOPMENT) \
+INFOS = compat.info
+
all: compile
@@ -74,6 +88,22 @@ check:
sort | uniq > /tmp/compat-links
@ (diff /tmp/compat-defs /tmp/compat-defs)
+install: $(addprefix install-,compat-runtime-el compat-info)
+
+install-compat-runtime-el: $(RUNTIME) $(RUNTIME:.elc=.el)
+
+install-compat-info: compat.info
+
+install-%-el:
+ $(if $<, install -m755 -d $(DESTDIR)$(ELDIR))
+ $(if $<, install -m644 $^ $(DESTDIR)$(ELDIR))
+
+install-%-info:
+ $(if $<, install -m755 -d $(DESTDIR)$(INFODIR))
+ $(if $<, $(INSTALL_INFO) --info-file=$< --info-dir=$(DESTDIR)$(INFODIR))
+ $(if $<, install -m644 $^ $(DESTDIR)$(INFODIR))
+ $(if $<, $(GZIP) -9nf $(DESTDIR)$(INFODIR)/$<)
+
$(BYTEC): compat-macs.el
.el.elc: