Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile: add dist target to create release tarballs - lchat - A line oriented …
git clone git://git.suckless.org/lchat
Log
Files
Refs
README
---
commit f212a3b26b2b248aa41c50f6393564cf1e29dbc2
parent 6951410631bbbd8c280cfe2698f9dc0a24ef5a00
Author: Jan Klemkow <[email protected]>
Date: Thu, 20 Oct 2022 23:09:58 +0200
Makefile: add dist target to create release tarballs
Diffstat:
M Makefile | 8 +++++++-
M config.mk | 2 ++
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/Makefile b/Makefile
@@ -1,6 +1,6 @@
include config.mk
-.PHONY: all install uninstall filter clean test
+.PHONY: all install uninstall filter clean test dist
all: lchat
clean:
@@ -16,6 +16,12 @@ uninstall:
test: sl_test
./sl_test
+dist:
+ mkdir -p lchat-$(VERSION)
+ cp -r $$(git ls-tree --name-only HEAD) lchat-$(VERSION)
+ tar -czf lchat-$(VERSION).tar.gz lchat-$(VERSION)
+ rm -fr lchat-$(VERSION)
+
lchat: lchat.o slackline.o util.o
$(CC) -o $@ lchat.o slackline.o util.o $(LIBS)
diff --git a/config.mk b/config.mk
@@ -1,3 +1,5 @@
+VERSION = 1.0
+
# paths
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.