Merge pull request #350 from trapexit/versionfile

only remove src/version.hpp if git repo and git available
This commit is contained in:
Antonio SJ Musumeci 2016-12-14 21:42:58 -05:00 committed by GitHub
commit ea403b4f5a

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