X-Git-Url: http://git.onelab.eu/?p=nodemanager-topo.git;a=blobdiff_plain;f=Makefile;h=0fa38390492874625ed6e354be9180fa73bbf2db;hp=260ad09877739bf3397c894467eec1effb5ef9e6;hb=HEAD;hpb=e4d85917a4dc6fe4cd3dd55abb8eb1f957468d15 diff --git a/Makefile b/Makefile index 260ad09..0fa3839 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,10 @@ +PWD=$(shell pwd) +RPMDIRDEFS = --define "_sourcedir $(PWD)" --define "_builddir $(PWD)" --define "_srcrpmdir $(PWD)" --define "_rpmdir $(PWD)" + +SPECFILE = NodeManager-topo.spec + +srpm: + rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE) + rpm: rpmbuild $(RPMDEFS) --define '_sourcedir $(PWD)' -ba NodeManager-topo.spec