branch: externals/window-commander
commit c884983ae2a982aaa42cc303779c697cc6c69fdb
Author: Daniel Semyonov <[email protected]>
Commit: Daniel Semyonov <[email protected]>
; 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