mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-25 18:40:18 -04:00
only remove src/version.hpp if git repo and git available
This commit is contained in:
parent
953bca02fc
commit
b1459c6cdc
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