summaryrefslogtreecommitdiff
path: root/extras/scsi_id
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2005-09-14 14:27:28 +0200
committerKay Sievers <kay.sievers@suse.de>2005-09-14 14:27:28 +0200
commit1ac216b198e559163b1c81eca2f1c9a635d8e326 (patch)
treea912c776c49deba6709fbaf23ab47f1b69c20970 /extras/scsi_id
parent8c65c6a1be91dd3a3da2b5c3b304ec02ad3c67f9 (diff)
EXTRAS/Makefile: fix install targets to match main Makefile
Diffstat (limited to 'extras/scsi_id')
-rw-r--r--extras/scsi_id/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/extras/scsi_id/Makefile b/extras/scsi_id/Makefile
index 3c38d6171e..3b75e165fb 100644
--- a/extras/scsi_id/Makefile
+++ b/extras/scsi_id/Makefile
@@ -46,18 +46,23 @@ all: $(PROG)
# XXX use a compressed man page?
-install: all
+install-bin: all
$(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+
+install-man:
$(INSTALL_DATA) -D scsi_id.8 $(DESTDIR)$(mandir)/man8/scsi_id.8
+
+install-config:
@if [ ! -r $(DESTDIR)$(etcdir)/scsi_id.config ]; then \
echo $(INSTALL_DATA) -D ./scsi_id.config $(DESTDIR)$(etcdir); \
$(INSTALL_DATA) -D ./scsi_id.config $(DESTDIR)$(etcdir)/scsi_id.config; \
fi
-uninstall:
+uninstall-bin:
-rm $(DESTDIR)$(sbindir)/$(PROG)
+
+uninstall-man:
-rm $(DESTDIR)$(mandir)/man8/scsi_id.8
- -rm $(DESTDIR)$(etcdir)/scsi_id.config
GEN_HEADER=scsi_id_version.h