emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swsw c884983ae2 090/146: ; Fix makefile for OpenBSD


From: ELPA Syncer
Subject: [nongnu] elpa/swsw c884983ae2 090/146: ; Fix makefile for OpenBSD
Date: Wed, 25 May 2022 02:59:50 -0400 (EDT)

branch: elpa/swsw
commit c884983ae2a982aaa42cc303779c697cc6c69fdb
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>

    ; Fix makefile for OpenBSD
---
 Makefile  | 12 +++++++-----
 config.mk |  1 +
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 5812b9547f..1d80387bf4 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ include config.mk
 
 .PHONY: info package clean
 
+.SUFFIXES: .texi .info
+
 all: package
 
 help:
@@ -10,18 +12,18 @@ help:
        $(info make clean    - remove generated files)
        @exit
 
-%.info: %.texi
+.texi.info:
        $(MAKEINFO) --no-split $< -o $@
 
 dir: $(PKG).info
-       $(INSTALLINFO) $< $@
+       $(INSTALLINFO) $? $@
 
 info: $(PKG).info dir
 
-%.tar: $(PKG).info dir *.el LICENSE
+$(PKG)-$(VERSION).tar: $(PKG).info dir *.el LICENSE
        mkdir $(PKG)-$(VERSION)
-       cp -a $^ $(PKG)-$(VERSION)/
-       tar -cf $@ $(PKG)-$(VERSION)
+       cp -a $? $(PKG)-$(VERSION)/
+       $(TAR) -cf $@ $(PKG)-$(VERSION)
        rm -rf $(PKG)-$(VERSION)
 
 package: $(PKG)-$(VERSION).tar
diff --git a/config.mk b/config.mk
index d5c7ba4a2a..9b8f766f1a 100644
--- a/config.mk
+++ b/config.mk
@@ -3,3 +3,4 @@ VERSION = 2.0
 
 INSTALLINFO = install-info
 MAKEINFO    = makeinfo
+TAR         = tar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]