]> Skullheadx's Git Forge - slstatus.git/commitdiff
Fix release tarball to prepare for release
authordrkhsh <me@drkhsh.at>
Mon, 15 May 2023 17:11:39 +0000 (19:11 +0200)
committerdrkhsh <me@drkhsh.at>
Mon, 15 May 2023 17:11:39 +0000 (19:11 +0200)
Correctly copies components to sub-directory, adds all required files

Makefile

index 7834257b49698722be016c8f5bc0cdf87d0cf105..7a18274a6d9c9d85bf6dac134319122d1587f88f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,14 +44,15 @@ slstatus: slstatus.o $(COM:=.o) $(REQ:=.o)
        $(CC) -o $@ $(LDFLAGS) $(COM:=.o) $(REQ:=.o) slstatus.o $(LDLIBS)
 
 clean:
-       rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o)
+       rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o) slstatus-${VERSION}.tar.gz
 
 dist:
        rm -rf "slstatus-$(VERSION)"
        mkdir -p "slstatus-$(VERSION)/components"
        cp -R LICENSE Makefile README config.mk config.def.h \
-             arg.h slstatus.c $(COM:=.c) $(REQ:=.c) $(REQ:=.h) \
+             arg.h slstatus.h slstatus.c $(REQ:=.c) $(REQ:=.h) \
              slstatus.1 "slstatus-$(VERSION)"
+       cp -R $(COM:=.c) "slstatus-$(VERSION)/components"
        tar -cf - "slstatus-$(VERSION)" | gzip -c > "slstatus-$(VERSION).tar.gz"
        rm -rf "slstatus-$(VERSION)"