summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-09-05 12:23:55 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-09-05 12:23:55 +0400
commit0647672476d0465b4418a68e9b61a768e6a38b15 (patch)
tree1745e6c012e4f620b3d6b65611209641a39bdb40
parent10727320f176ee3995021a5177ddda9105ebff6f (diff)
Makefile tar generation updated
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 01e33ee..02a7a22 100644
--- a/Makefile
+++ b/Makefile
@@ -24,15 +24,14 @@ st: $(OBJ)
$(CC) -o $@ $(OBJ) $(STLDFLAGS)
clean:
- rm -f st $(OBJ) st-$(VERSION).tar.gz
+ rm -f st $(OBJ) st.tar.gz
dist: clean
- mkdir -p st-$(VERSION)
- cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
- config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
- st-$(VERSION)
- tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
- rm -rf st-$(VERSION)
+ mkdir -p st
+ cp -R Makefile config.mk\
+ config.h arg.h st.h win.h $(SRC) st
+ tar -czf st.tar.gz st
+ rm -rf st/
install: st
mkdir -p $(DESTDIR)$(PREFIX)/bin