create mount.mergerfs symlink. closes #149

This commit is contained in:
Antonio SJ Musumeci 2015-10-12 23:43:17 -04:00
parent 3ccc94a560
commit 5a76c41236
2 changed files with 12 additions and 4 deletions

View File

@ -116,10 +116,13 @@ $(TARGET): src/version.hpp obj/obj-stamp $(OBJ)
$(CXX) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS)
clone: $(TARGET)
$(LN) -s $< $@
$(LN) -fs "$<" "$@"
fsck.mergerfs: tools/fsck.mergerfs
mount.mergerfs: $(TARGET)
$(LN) -fs "$<" "$@"
changelog:
$(GIT2DEBCL) --name $(TARGET) > ChangeLog
@ -149,13 +152,18 @@ clean: rpm-clean
distclean: clean
$(GIT) clean -fd
install: install-base install-clone install-tools install-man
install: install-base install-clone install-mount.mergerfs install-tools install-man
install-base: $(TARGET)
$(INSTALL) -v -m 0755 -D "$(TARGET)" "$(INSTALLBINDIR)/$(TARGET)"
install-clone: clone
$(CP) -a $< "$(INSTALLBINDIR)/$<"
$(MKDIR) -p "$(INSTALLBINDIR)"
$(CP) -a "$<" "$(INSTALLBINDIR)/$<"
install-mount.mergerfs: mount.mergerfs
$(MKDIR) -p "$(INSTALLBINDIR)"
$(CP) -a "$<" "$(INSTALLBINDIR)/$<"
install-tools: fsck.mergerfs
$(INSTALL) -v -m 0755 -D "tools/$<" "$(INSTALLSBINDIR)/$<"

2
debian/rules vendored
View File

@ -8,4 +8,4 @@
dh $@
override_dh_auto_install:
$(MAKE) PREFIX=$(CURDIR)/debian/mergerfs/usr install
$(MAKE) DESTDIR=$(CURDIR)/debian/mergerfs PREFIX=/usr install