From db940fb3e73cf532d84b49063faf25b6d0932aff Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 16 Aug 2006 00:43:50 +0000 Subject: [PATCH] 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 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index b48b49b1676..0a27cbed46b 100644 --- a/Makefile +++ b/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