summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-16 00:43:50 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-16 00:43:50 +0000
commitd14c6ca4559d3ac0924a9c55eb938af5e45b131d (patch)
tree9e9d431d2ffc7a1539c5d38a0c0d279baff85dd7
parent0afdce389c35a67a9f1e7d91c7c0ac19bb164002 (diff)
downloadbcm5719-llvm-d14c6ca4559d3ac0924a9c55eb938af5e45b131d.tar.gz
bcm5719-llvm-d14c6ca4559d3ac0924a9c55eb938af5e45b131d.zip
Add .PHONY targets for building source and binary RPM packages. You can
now just "make rpm" or "make srpm" and it will build them. llvm-svn: 29717
-rw-r--r--llvm/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/Makefile b/llvm/Makefile
index b48b49b1676..0a27cbed46b 100644
--- a/llvm/Makefile
+++ b/llvm/Makefile
@@ -100,3 +100,10 @@ endif
check-llvm2cpp:
$(MAKE) check TESTSUITE=Feature RUNLLVM2CPP=1
+srpm: $(LLVM_OBJ_ROOT)/llvm.spec
+ rpmbuild -bs $(LLVM_OBJ_ROOT)/llvm.spec
+
+rpm: $(LLVM_OBJ_ROOT)/llvm.spec
+ rpmbuild -bb --target $(TARGET_TRIPLE) $(LLVM_OBJ_ROOT)/llvm.spec
+
+.PHONY: srpm rpm
OpenPOWER on IntegriCloud