mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Merge pull request #350 from trapexit/versionfile
only remove src/version.hpp if git repo and git available
This commit is contained in:
commit
ea403b4f5a
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue