|
@ -99,7 +99,7 @@ $(warning "xattr not available: disabling") |
|
|
CFLAGS += -DWITHOUT_XATTR |
|
|
CFLAGS += -DWITHOUT_XATTR |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
all: $(TARGET) clone |
|
|
|
|
|
|
|
|
all: $(TARGET) |
|
|
|
|
|
|
|
|
help: |
|
|
help: |
|
|
@echo "usage: make" |
|
|
@echo "usage: make" |
|
@ -108,9 +108,6 @@ help: |
|
|
$(TARGET): src/version.hpp obj/obj-stamp $(OBJ) |
|
|
$(TARGET): src/version.hpp obj/obj-stamp $(OBJ) |
|
|
$(CXX) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) |
|
|
$(CXX) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) |
|
|
|
|
|
|
|
|
clone: $(TARGET) |
|
|
|
|
|
$(LN) -fs "$<" "$@" |
|
|
|
|
|
|
|
|
|
|
|
mount.mergerfs: $(TARGET) |
|
|
mount.mergerfs: $(TARGET) |
|
|
$(LN) -fs "$<" "$@" |
|
|
$(LN) -fs "$<" "$@" |
|
|
|
|
|
|
|
@ -137,21 +134,17 @@ obj/%.o: src/%.cpp |
|
|
clean: rpm-clean |
|
|
clean: rpm-clean |
|
|
$(RM) -rf obj |
|
|
$(RM) -rf obj |
|
|
$(RM) -f src/version.hpp |
|
|
$(RM) -f src/version.hpp |
|
|
$(RM) -f "$(TARGET)" "$(MANPAGE)" clone |
|
|
|
|
|
|
|
|
$(RM) -f "$(TARGET)" "$(MANPAGE)" mount.mergerfs |
|
|
$(FIND) . -name "*~" -delete |
|
|
$(FIND) . -name "*~" -delete |
|
|
|
|
|
|
|
|
distclean: clean |
|
|
distclean: clean |
|
|
$(GIT) clean -fd |
|
|
$(GIT) clean -fd |
|
|
|
|
|
|
|
|
install: install-base install-clone install-mount.mergerfs install-man |
|
|
|
|
|
|
|
|
install: install-base install-mount.mergerfs install-man |
|
|
|
|
|
|
|
|
install-base: $(TARGET) |
|
|
install-base: $(TARGET) |
|
|
$(INSTALL) -v -m 0755 -D "$(TARGET)" "$(INSTALLBINDIR)/$(TARGET)" |
|
|
$(INSTALL) -v -m 0755 -D "$(TARGET)" "$(INSTALLBINDIR)/$(TARGET)" |
|
|
|
|
|
|
|
|
install-clone: clone |
|
|
|
|
|
$(MKDIR) -p "$(INSTALLBINDIR)" |
|
|
|
|
|
$(CP) -a "$<" "$(INSTALLBINDIR)/$<" |
|
|
|
|
|
|
|
|
|
|
|
install-mount.mergerfs: mount.mergerfs |
|
|
install-mount.mergerfs: mount.mergerfs |
|
|
$(MKDIR) -p "$(INSTALLBINDIR)" |
|
|
$(MKDIR) -p "$(INSTALLBINDIR)" |
|
|
$(CP) -a "$<" "$(INSTALLBINDIR)/$<" |
|
|
$(CP) -a "$<" "$(INSTALLBINDIR)/$<" |
|
@ -162,13 +155,13 @@ install-man: $(MANPAGE) |
|
|
install-strip: install-base |
|
|
install-strip: install-base |
|
|
$(STRIP) "$(INSTALLBINDIR)/$(TARGET)" |
|
|
$(STRIP) "$(INSTALLBINDIR)/$(TARGET)" |
|
|
|
|
|
|
|
|
uninstall: uninstall-base uninstall-clone uninstall-man |
|
|
|
|
|
|
|
|
uninstall: uninstall-base uninstall-mount.mergerfs uninstall-man |
|
|
|
|
|
|
|
|
uninstall-base: |
|
|
uninstall-base: |
|
|
$(RM) -f "$(INSTALLBINDIR)/$(TARGET)" |
|
|
$(RM) -f "$(INSTALLBINDIR)/$(TARGET)" |
|
|
|
|
|
|
|
|
uninstall-clone: |
|
|
|
|
|
$(RM) -f "$(INSTALLBINDIR)/clone" |
|
|
|
|
|
|
|
|
uninstall-mount.mergerfs: |
|
|
|
|
|
$(RM) -f "$(INSTALLBINDIR)/mount.mergerfs" |
|
|
|
|
|
|
|
|
uninstall-man: |
|
|
uninstall-man: |
|
|
$(RM) -f "$(INSTALLMAN1DIR)/$(MANPAGE)" |
|
|
$(RM) -f "$(INSTALLMAN1DIR)/$(MANPAGE)" |
|
|