Makefile: add convenience 'srpm' target
Add a simple 'srpm' target that builds the src.rpm file for the current
project.
Partially reverts commit b2662eeebd (at
least to bring the 'srpm' target back).
This commit is contained in:
parent
a46b26a8ff
commit
c2d704e130
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -111,6 +111,13 @@ $(NODE_CACHE): $(NODE_MODULES_TEST)
|
||||||
|
|
||||||
node-cache: $(NODE_CACHE)
|
node-cache: $(NODE_CACHE)
|
||||||
|
|
||||||
|
# convenience target for developers
|
||||||
|
srpm: $(TARFILE) $(NODE_CACHE) $(SPEC)
|
||||||
|
rpmbuild -bs \
|
||||||
|
--define "_sourcedir `pwd`" \
|
||||||
|
--define "_srcrpmdir `pwd`" \
|
||||||
|
$(SPEC)
|
||||||
|
|
||||||
# convenience target for developers
|
# convenience target for developers
|
||||||
rpm: $(TARFILE) $(NODE_CACHE) $(SPEC)
|
rpm: $(TARFILE) $(NODE_CACHE) $(SPEC)
|
||||||
mkdir -p "`pwd`/output"
|
mkdir -p "`pwd`/output"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue