Makefile: Avoid moving node_modules/ during dist build
This is ugly as it races with other make targets which expect node_modules/ to exist. It's also unnecessary, we can just tell tar to ignore node_modules/.
This commit is contained in:
parent
0134d26783
commit
03d8324c19
1 changed files with 1 additions and 3 deletions
4
Makefile
4
Makefile
|
|
@ -88,13 +88,11 @@ dist-gzip: $(TARFILE)
|
||||||
$(TARFILE): export NODE_ENV=production
|
$(TARFILE): export NODE_ENV=production
|
||||||
$(TARFILE): $(WEBPACK_TEST) cockpit-$(PACKAGE_NAME).spec
|
$(TARFILE): $(WEBPACK_TEST) cockpit-$(PACKAGE_NAME).spec
|
||||||
if type appstream-util >/dev/null 2>&1; then appstream-util validate-relax --nonet *.metainfo.xml; fi
|
if type appstream-util >/dev/null 2>&1; then appstream-util validate-relax --nonet *.metainfo.xml; fi
|
||||||
mv node_modules node_modules.release
|
|
||||||
touch -r package.json $(NODE_MODULES_TEST)
|
touch -r package.json $(NODE_MODULES_TEST)
|
||||||
touch dist/*
|
touch dist/*
|
||||||
tar czf cockpit-$(PACKAGE_NAME)-$(VERSION).tar.gz --transform 's,^,cockpit-$(PACKAGE_NAME)/,' \
|
tar czf cockpit-$(PACKAGE_NAME)-$(VERSION).tar.gz --transform 's,^,cockpit-$(PACKAGE_NAME)/,' \
|
||||||
--exclude cockpit-$(PACKAGE_NAME).spec.in \
|
--exclude cockpit-$(PACKAGE_NAME).spec.in --exclude node_modules \
|
||||||
$$(git ls-files) $(LIB_TEST) src/lib/patternfly/*.scss package-lock.json cockpit-$(PACKAGE_NAME).spec dist/
|
$$(git ls-files) $(LIB_TEST) src/lib/patternfly/*.scss package-lock.json cockpit-$(PACKAGE_NAME).spec dist/
|
||||||
mv node_modules.release node_modules
|
|
||||||
|
|
||||||
srpm: $(TARFILE) cockpit-$(PACKAGE_NAME).spec
|
srpm: $(TARFILE) cockpit-$(PACKAGE_NAME).spec
|
||||||
rpmbuild -bs \
|
rpmbuild -bs \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue