Added a 'compress' goal to the Makefile to quickly create a tar.gz archive
This commit is contained in:
parent
325d6bff13
commit
0608d1b84b
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
.idea
|
.idea
|
||||||
build
|
build
|
||||||
|
stormfetch
|
||||||
|
stormfetch.tar.gz
|
8
Makefile
8
Makefile
@ -18,5 +18,13 @@ install: build/stormfetch config/
|
|||||||
cp build/stormfetch $(DESTDIR)$(BINDIR)/stormfetch
|
cp build/stormfetch $(DESTDIR)$(BINDIR)/stormfetch
|
||||||
cp -r config/. $(DESTDIR)$(SYSCONFDIR)/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:
|
clean:
|
||||||
rm -r build/
|
rm -r build/
|
Loading…
x
Reference in New Issue
Block a user