summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-01-18 22:09:10 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-01-18 22:09:10 +0400
commit016262d5c4c33c038b41c3b69b8c34360196b6b9 (patch)
tree5e9c2a02a0336e6285ff56547f57bbe12745b338
parentc942765fcd50c9356c5de300ca114e8cded8fd5b (diff)
include version number in the generated tarball
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3c6a65d..7fa10a0 100644
--- a/Makefile
+++ b/Makefile
@@ -20,14 +20,14 @@ dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
- rm -f dwm ${OBJ} dwm.tar.gz *.rej *.orig
+ rm -f dwm ${OBJ} dwm-farajli-$(VERSION).tar.gz *.rej *.orig
dist: clean
- mkdir -p dwm
+ mkdir -p dwm-farajli-$(VERSION)
cp -R LICENSE Makefile README config.mk\
- dwm.1 drw.h util.h config.h ${SRC} transient.c dwm
- tar -czf dwm-farajli.tar.gz dwm
- rm -rf dwm/
+ dwm.1 drw.h util.h config.h ${SRC} transient.c dwm-farajli-$(VERSION)
+ tar -czf dwm-farajli-$(VERSION).tar.gz dwm-farajli-$(VERSION)
+ rm -rf dwm-farajli-$(VERSION)
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin