summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-08-05 17:44:48 +0200
committerDavid Sterba <dsterba@suse.com>2015-08-31 19:25:11 +0200
commit7c41d25ec63addd0f6661dac20532a18237c039f (patch)
tree02d4d0395a12c57f97702451a63e22dbf9698181 /Makefile.in
parent38c5382e3f7e02ad3669c8d4a0a37d86e4868e9d (diff)
downloadbtrfs-progs-7c41d25ec63addd0f6661dac20532a18237c039f.tar.gz
btrfs-progs: do not install static binaries over non-static
The builds should be able to coexist, so we don't want to forcibly overwite the standard version. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 8450ab3..25b4038 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -344,8 +344,10 @@ install: $(libs) $(progs_install) $(INSTALLDIRS)
install-static: $(progs_static) $(INSTALLDIRS)
for p in $(progs_static) ; do \
- $(INSTALL) -D -m755 $$p $(DESTDIR)$(bindir)/`basename $$p .static` ; \
+ $(INSTALL) -D -m755 $$p $(DESTDIR)$(bindir)/ ; \
done
+ # btrfsck is a link to btrfs in the src tree, make it so for installed file as well
+ $(LN_S) -f btrfs.static $(DESTDIR)$(bindir)/btrfsck.static
$(INSTALLDIRS):
@echo "Making install in $(patsubst install-%,%,$@)"