packit: Enable RPM builds and Fedora testing
Teach `make dist-gzip` to print the tarball name as last line, and use it as `create-archive` action. Add a `make print-version` command which packit can use. The builtin default only works if there is at least one git tag, which is not the case for starter-kit (which is never released).
This commit is contained in:
parent
09823650e2
commit
a26f4048c2
3 changed files with 34 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -75,7 +75,11 @@ devel-install: $(WEBPACK_TEST)
|
|||
mkdir -p ~/.local/share/cockpit
|
||||
ln -s `pwd`/dist ~/.local/share/cockpit/$(PACKAGE_NAME)
|
||||
|
||||
print-version:
|
||||
@echo "$(VERSION)"
|
||||
|
||||
dist-gzip: $(TARFILE)
|
||||
@ls -1 $(TARFILE)
|
||||
|
||||
# when building a distribution tarball, call webpack with a 'production' environment
|
||||
# we don't ship node_modules for license and compactness reasons; we ship a
|
||||
|
|
@ -162,4 +166,4 @@ $(NODE_MODULES_TEST): package.json
|
|||
env -u NODE_ENV npm install
|
||||
env -u NODE_ENV npm prune
|
||||
|
||||
.PHONY: all clean install devel-install dist-gzip srpm rpm check vm update-po
|
||||
.PHONY: all clean install devel-install print-version dist-gzip srpm rpm check vm update-po
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue