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