Added a 'compress' goal to the Makefile to quickly create a tar.gz archive

This commit is contained in:
CapCreeperGR 2024-05-08 11:29:01 +03:00
parent 325d6bff13
commit 0608d1b84b
2 changed files with 11 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.idea
build
stormfetch
stormfetch.tar.gz

View File

@ -18,5 +18,13 @@ install: build/stormfetch config/
cp build/stormfetch $(DESTDIR)$(BINDIR)/stormfetch
cp -r config/. $(DESTDIR)$(SYSCONFDIR)/stormfetch/
compress: build/stormfetch config/
mkdir -p stormfetch/$(BINDIR)
mkdir -p stormfetch/$(SYSCONFDIR)/stormfetch/
cp build/stormfetch stormfetch/$(BINDIR)/stormfetch
cp -r config/. stormfetch/$(SYSCONFDIR)/stormfetch/
tar --owner=root --group=root -czf stormfetch.tar.gz stormfetch
rm -r stormfetch
clean:
rm -r build/