[PATCH 2/21] [kpartx] fix install target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The install target should refer the executable, otherwise it'll trigger
an entire rebuild.

Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
---
 devmap_name/Makefile |    4 ++--
 kpartx/Makefile      |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/devmap_name/Makefile b/devmap_name/Makefile
index 380c85b..d8d8b09 100644
--- a/devmap_name/Makefile
+++ b/devmap_name/Makefile
@@ -28,9 +28,9 @@ klibc: prepare $(OBJS)
 	$(CC) -static -o $(EXEC) $(OBJS)
 	$(GZIP) $(EXEC).8 > $(EXEC).8.gz
 
-install:
+install: $(EXEC) $(EXEC).8
 	install -d $(DESTDIR)$(bindir)
-	install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/
+	install -m 755 $(EXEC) $(DESTDIR)$(bindir)/
 	install -d $(DESTDIR)$(mandir)
 	install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
 
diff --git a/kpartx/Makefile b/kpartx/Makefile
index bf6e6c1..a43f881 100644
--- a/kpartx/Makefile
+++ b/kpartx/Makefile
@@ -36,7 +36,7 @@ klibc: prepare $(OBJS)
 $(MULTIPATHLIB)-$(BUILD).a:
 	make -C $(multipathdir) BUILD=$(BUILD)
 
-install:
+install: $(EXEC) $(EXEC).8
 	install -d $(DESTDIR)$(bindir)
 	install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)
 	install -d $(DESTDIR)$(mandir)
-- 
1.4.3.4

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux