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 | a5c8c44145e913f3aab6707de309017f87a65519 (patch) | |
tree | 86e1e657d569b86ce626eace119fee0303b08958 | |
parent | 25bfca534156b6d073f46890a949e3a5882f56cf (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" |