Browse Source

"make rpmbuild" now works for non-bash-shells

Also ignore some build artifacts.
pull/178/head
Valentin Hilbig 9 years ago
parent
commit
f94f82130e
  1. 5
      .gitignore
  2. 2
      Makefile

5
.gitignore

@ -15,3 +15,8 @@
# Debian files
debian/files
debian/changelog
# ignore build artifacts
obj/
rpmbuild/
src/version.hpp

2
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

Loading…
Cancel
Save