only remove src/version.hpp if git repo and git available

This commit is contained in:
Antonio SJ Musumeci 2016-12-14 21:42:43 -05:00
parent 953bca02fc
commit b1459c6cdc

View File

@ -132,8 +132,12 @@ obj/%.o: src/%.cpp
$(CXX) $(CFLAGS) -c $< -o $@
clean: rpm-clean
$(RM) -rf obj
ifneq ($(GIT),)
ifeq ($(shell test -e .git; echo $$?),0)
$(RM) -f src/version.hpp
endif
endif
$(RM) -rf obj
$(RM) -f "$(TARGET)" mount.mergerfs
$(FIND) . -name "*~" -delete