Changes for 2.6.32 kernel
[nodemanager-topo.git] / Makefile
index 260ad09..0fa3839 100644 (file)
--- 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