summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--git-rpm.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/git-rpm.mk b/git-rpm.mk
index 760d239..a469995 100644
--- a/git-rpm.mk
+++ b/git-rpm.mk
@@ -59,7 +59,12 @@ RSYNC_DIR = $(RSYNC_ROOT)/$(NAME)/$(RPM_VERSION)-$(RPM_RELEASE)
SOURCE_FILES = $(shell spectool --lf $(SPEC) | cut -d' ' -f2 | xargs -l basename)
.PHONY: all
-all: rpm check
+all: build
+build: rpm check
+
+.PHONY: sources
+sources:
+ spectool -g $(SPEC)
.PHONY: srpm
srpm: $(SRPM)
@@ -161,6 +166,12 @@ help:
@echo "Mock config: $(MOCKCFG)"
@echo "Mock result dir: $(MOCKRESULTDIR)"
@echo "Source RPM: $(SRPM)"
+ @echo "Targets:"
+ @echo " build build the RPM package(s) locally"
+ @echo " scratch-build build scratch RPM via Fedora's koji"
+ @echo " mock-build build RPM in local mock chroot"
+ @echo " sources download all source files"
+ @echo " srpm build SRPM package locally"
# Package specific rules, best put into package specific GNUmakefile