Browse Source

Merge pull request #350 from trapexit/versionfile

only remove src/version.hpp if git repo and git available
pull/351/head
Antonio SJ Musumeci 8 years ago
committed by GitHub
parent
commit
ea403b4f5a
  1. 6
      Makefile

6
Makefile

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

Loading…
Cancel
Save