diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-09-05 15:05:11 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-09-05 15:05:11 +0400 |
commit | 723601f8e4f9b9c3d8c79c848a0391195a97f7f4 (patch) | |
tree | 86e1e657d569b86ce626eace119fee0303b08958 | |
parent | d51216dcd1332ab2f2f9bbebeb3d242c71d8fb79 (diff) |
makefile dist updated
-rw-r--r-- | Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -44,17 +44,16 @@ 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) slstatus-${VERSION}.tar.gz + rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o) slstatus.tar.gz -dist: - rm -rf "slstatus-$(VERSION)" - mkdir -p "slstatus-$(VERSION)/components" - cp -R LICENSE Makefile README config.mk config.def.h \ +dist: clean + mkdir -p "slstatus/components" + cp -R LICENSE Makefile README config.mk config.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)" + slstatus.1 "slstatus" + cp -R $(COM:=.c) "slstatus/components" + tar -czf slstatus.tar.gz slstatus + rm -rf "slstatus" install: all mkdir -p "$(DESTDIR)$(PREFIX)/bin" |