Simplier dist generation prep
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
2
Makefile
2
Makefile
@@ -148,7 +148,7 @@ wwapird: $(call godeps,internal/app/api/wwapird/wwapird.go)
|
||||
|
||||
.PHONY: dist
|
||||
dist: vendor config
|
||||
rm -rf .dist/$(WAREWULF)-$(VERSION) $(WAREWULF)-$(VERSION).tar.gz
|
||||
rm -rf .dist/ $(WAREWULF)-$(VERSION).tar.gz
|
||||
mkdir -p .dist/$(WAREWULF)-$(VERSION)
|
||||
rsync -a --exclude=".*" --exclude "*~" * .dist/$(WAREWULF)-$(VERSION)/
|
||||
cd .dist; tar -czf ../$(WAREWULF)-$(VERSION).tar.gz $(WAREWULF)-$(VERSION)
|
||||
|
||||
Reference in New Issue
Block a user