From 0608d1b84b13713a5aecf8aca04f267b595425f7 Mon Sep 17 00:00:00 2001 From: CapCreeperGR Date: Wed, 8 May 2024 11:29:01 +0300 Subject: [PATCH] Added a 'compress' goal to the Makefile to quickly create a tar.gz archive --- .gitignore | 4 +++- Makefile | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4afcf19..765addf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .idea -build \ No newline at end of file +build +stormfetch +stormfetch.tar.gz \ No newline at end of file diff --git a/Makefile b/Makefile index ed9d341..20435ca 100644 --- a/Makefile +++ b/Makefile @@ -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/ \ No newline at end of file