Skip to contentSkip to conversation

fix install target

PATCH In review Hannes Reinecke 1 participant 1 message May 21, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 2/21 fix install target

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

---
 devmap_name/Makefile |    4 ++--
 kpartx/Makefile      |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
devmap_name/Makefile +2 -2
index 380c85b..d8d8b09 100644
@@ -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)
 
kpartx/Makefile +1 -1
index bf6e6c1..a43f881 100644
@@ -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)
Signature · 1 line
1.4.3.4