From f94f82130eea90f244ff2451165be0a73c1356d1 Mon Sep 17 00:00:00 2001 From: Valentin Hilbig Date: Sun, 13 Dec 2015 21:49:55 +0100 Subject: [PATCH] "make rpmbuild" now works for non-bash-shells Also ignore some build artifacts. --- .gitignore | 5 +++++ Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5c51ed50..2c558de3 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,8 @@ # Debian files debian/files debian/changelog + +# ignore build artifacts +obj/ +rpmbuild/ +src/version.hpp diff --git a/Makefile b/Makefile index 765c1b88..99b752c0 100644 --- a/Makefile +++ b/Makefile @@ -219,7 +219,7 @@ rpm-clean: rpm: tarball $(eval VERSION := $(shell $(GIT) describe --always --tags --dirty)) $(eval VERSION := $(subst -,_,$(VERSION))) - $(MKDIR) -p rpmbuild/{BUILD,RPMS,SOURCES} + $(MKDIR) -p rpmbuild/BUILD rpmbuild/RPMS,SOURCES rpmbuild/SOURCES $(SED) 's/__VERSION__/$(VERSION)/g' $(TARGET).spec > \ rpmbuild/SOURCES/$(TARGET).spec cp -ar $(TARGET)-$(VERSION).tar.gz rpmbuild/SOURCES