diff options
author | Roy Marples <roy@marples.name> | 2008-03-15 00:02:39 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-03-15 00:02:39 +0100 |
commit | 064360cde8f35d8ac6faf418ddfa39b9f3da4347 (patch) | |
tree | 595f03703f165581447560b62dcb8844f46d6ceb /extras | |
parent | 0ea5e96edbc66319d7711d9eab8719a2c98c843d (diff) |
Makefile: do not require GNU install
Diffstat (limited to 'extras')
-rw-r--r-- | extras/ata_id/Makefile | 4 | ||||
-rw-r--r-- | extras/cdrom_id/Makefile | 9 | ||||
-rw-r--r-- | extras/collect/Makefile | 3 | ||||
-rw-r--r-- | extras/edd_id/Makefile | 9 | ||||
-rw-r--r-- | extras/firmware/Makefile | 3 | ||||
-rw-r--r-- | extras/floppy/Makefile | 6 | ||||
-rw-r--r-- | extras/path_id/Makefile | 6 | ||||
-rw-r--r-- | extras/rule_generator/Makefile | 12 | ||||
-rw-r--r-- | extras/scsi_id/Makefile | 12 | ||||
-rw-r--r-- | extras/usb_id/Makefile | 3 | ||||
-rw-r--r-- | extras/volume_id/Makefile | 6 | ||||
-rw-r--r-- | extras/volume_id/lib/Makefile | 11 |
12 files changed, 55 insertions, 29 deletions
diff --git a/extras/ata_id/Makefile b/extras/ata_id/Makefile index c9691da1e2..bab49a250d 100644 --- a/extras/ata_id/Makefile +++ b/extras/ata_id/Makefile @@ -49,7 +49,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) .PHONY: install-bin uninstall-bin: @@ -57,6 +58,7 @@ uninstall-bin: .PHONY: uninstall-bin install-man: + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 $(INSTALL_DATA) -D $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 .PHONY: install-man diff --git a/extras/cdrom_id/Makefile b/extras/cdrom_id/Makefile index 7cd7c1d74a..caab2beaf5 100644 --- a/extras/cdrom_id/Makefile +++ b/extras/cdrom_id/Makefile @@ -49,8 +49,10 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) - $(INSTALL_DATA) -D 60-cdrom_id.rules $(DESTDIR)$(configdir)/rules.d/60-cdrom_id.rules + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(configdir)/rules.d + $(INSTALL_DATA) 60-cdrom_id.rules $(DESTDIR)$(configdir)/rules.d/60-cdrom_id.rules .PHONY: install-bin uninstall-bin: @@ -59,7 +61,8 @@ uninstall-bin: .PHONY: uninstall-bin install-man: - $(INSTALL_DATA) -D $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 + $(INSTALL_DATA) $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 .PHONY: install-man uninstall-man: diff --git a/extras/collect/Makefile b/extras/collect/Makefile index 6168a8b805..76487017dd 100644 --- a/extras/collect/Makefile +++ b/extras/collect/Makefile @@ -44,7 +44,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) .PHONY: install-bin uninstall-bin: diff --git a/extras/edd_id/Makefile b/extras/edd_id/Makefile index f52c3bc3f0..f17a5b8c65 100644 --- a/extras/edd_id/Makefile +++ b/extras/edd_id/Makefile @@ -49,8 +49,10 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) - $(INSTALL_DATA) -D 61-persistent-storage-edd.rules $(DESTDIR)$(configdir)/rules.d/61-persistent-storage-edd.rules + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(configdir)/rules.d/ + $(INSTALL_DATA) 61-persistent-storage-edd.rules $(DESTDIR)$(configdir)/rules.d/61-persistent-storage-edd.rules .PHONY: install-bin uninstall-bin: @@ -59,7 +61,8 @@ uninstall-bin: .PHONY: uninstall-bin install-man: - $(INSTALL_DATA) -D $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 + $(INSTALL_DATA) $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 .PHONY: install-man uninstall-man: diff --git a/extras/firmware/Makefile b/extras/firmware/Makefile index c187b47635..5e84acb156 100644 --- a/extras/firmware/Makefile +++ b/extras/firmware/Makefile @@ -37,7 +37,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_SCRIPT) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_SCRIPT) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) .PHONY: install-bin uninstall-bin: diff --git a/extras/floppy/Makefile b/extras/floppy/Makefile index 784464a843..0adc373c94 100644 --- a/extras/floppy/Makefile +++ b/extras/floppy/Makefile @@ -49,7 +49,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) .PHONY: install-bin uninstall-bin: @@ -57,7 +58,8 @@ uninstall-bin: .PHONY: uninstall-bin install-man: - $(INSTALL_DATA) -D $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 + $(INSTALL) -d $(DESTDIR)$(mandir)/man8/ + $(INSTALL_DATA) $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 .PHONY: install-man uninstall-man: diff --git a/extras/path_id/Makefile b/extras/path_id/Makefile index d8efe64187..2f0b882e65 100644 --- a/extras/path_id/Makefile +++ b/extras/path_id/Makefile @@ -37,7 +37,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_SCRIPT) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_SCRIPT) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) .PHONY: install-bin uninstall-bin: @@ -45,7 +46,8 @@ uninstall-bin: .PHONY: uninstall-bin install-man: - $(INSTALL_DATA) -D $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 + $(INSTALL) -d $(DESTDIR)$(mandir)/man8/ + $(INSTALL_DATA) $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 .PHONY: install-man uninstall-man: diff --git a/extras/rule_generator/Makefile b/extras/rule_generator/Makefile index cc6fe056c6..d6f1265eb9 100644 --- a/extras/rule_generator/Makefile +++ b/extras/rule_generator/Makefile @@ -37,12 +37,14 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_DATA) -D rule_generator.functions $(DESTDIR)$(libudevdir)/rule_generator.functions - $(INSTALL_SCRIPT) -D write_cd_rules $(DESTDIR)$(libudevdir)/write_cd_rules - $(INSTALL_SCRIPT) -D write_net_rules $(DESTDIR)$(libudevdir)/write_net_rules - $(INSTALL_DATA) -D 75-cd-aliases-generator.rules \ + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_DATA) rule_generator.functions $(DESTDIR)$(libudevdir)/rule_generator.functions + $(INSTALL_SCRIPT) write_cd_rules $(DESTDIR)$(libudevdir)/write_cd_rules + $(INSTALL_SCRIPT) write_net_rules $(DESTDIR)$(libudevdir)/write_net_rules + $(INSTALL) -d $(DESTDIR)$(configdir)/rules.d + $(INSTALL_DATA) 75-cd-aliases-generator.rules \ $(DESTDIR)$(configdir)/rules.d/75-cd-aliases-generator.rules - $(INSTALL_DATA) -D 75-persistent-net-generator.rules \ + $(INSTALL_DATA) 75-persistent-net-generator.rules \ $(DESTDIR)$(configdir)/rules.d/75-persistent-net-generator.rules .PHONY: install-bin diff --git a/extras/scsi_id/Makefile b/extras/scsi_id/Makefile index 349eeef1de..870296a666 100644 --- a/extras/scsi_id/Makefile +++ b/extras/scsi_id/Makefile @@ -58,7 +58,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) .PHONY: install-bin uninstall-bin: @@ -66,7 +67,8 @@ uninstall-bin: .PHONY: uninstall-bin install-man: - $(INSTALL_DATA) -D scsi_id.8 $(DESTDIR)$(mandir)/man8/scsi_id.8 + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 + $(INSTALL_DATA) scsi_id.8 $(DESTDIR)$(mandir)/man8/scsi_id.8 .PHONY: install-man uninstall-man: @@ -75,8 +77,10 @@ uninstall-man: 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; \ + echo $(INSTALL) -d $(DESTDIR)$(etcdir); \ + echo $(INSTALL_DATA) ./scsi_id.config $(DESTDIR)$(etcdir); \ + $(INSTALL) -d $(DESTDIR)$(etcdir); \ + $(INSTALL_DATA) ./scsi_id.config $(DESTDIR)$(etcdir)/scsi_id.config; \ fi .PHONY: install-config diff --git a/extras/usb_id/Makefile b/extras/usb_id/Makefile index 7787161b63..09496049a5 100644 --- a/extras/usb_id/Makefile +++ b/extras/usb_id/Makefile @@ -49,7 +49,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) .PHONY: install-bin uninstall-bin: diff --git a/extras/volume_id/Makefile b/extras/volume_id/Makefile index 6e5006594a..50d5e338c2 100644 --- a/extras/volume_id/Makefile +++ b/extras/volume_id/Makefile @@ -60,7 +60,8 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) + $(INSTALL) -d $(DESTDIR)$(libudevdir) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(libudevdir)/$(PROG) $(MAKE) -C lib install .PHONY: install-bin @@ -70,7 +71,8 @@ uninstall-bin: .PHONY: uninstall-bin install-man: - $(INSTALL_DATA) -D $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 + $(INSTALL_DATA) $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8 .PHONY: install-man uninstall-man: diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile index 105549a946..c0905f4a06 100644 --- a/extras/volume_id/lib/Makefile +++ b/extras/volume_id/lib/Makefile @@ -103,16 +103,19 @@ libvolume_id.pc: $(Q) echo "Cflags: -I\$${includedir}" >> $@ install: all - $(INSTALL_DATA) -D libvolume_id.h $(DESTDIR)$(includedir)/libvolume_id.h - $(INSTALL_LIB) -D $(SHLIB) $(DESTDIR)$(libdir)/$(SHLIB) - mkdir -p $(DESTDIR)$(usrlibdir)/ + $(INSTALL) -d $(DESTDIR)$(includedir) + $(INSTALL_DATA) libvolume_id.h $(DESTDIR)$(includedir)/libvolume_id.h + $(INSTALL) -d $(DESTDIR)$(libdir) + $(INSTALL_LIB) $(SHLIB) $(DESTDIR)$(libdir)/$(SHLIB) + $(INSTALL) -d $(DESTDIR)$(usrlibdir) ln -sf $(SHLIB) $(DESTDIR)$(libdir)/libvolume_id.so.$(SHLIB_CUR) ifeq ($(libdir),$(usrlibdir)) ln -sf $(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so else ln -sf $(libdir)/$(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so endif - $(INSTALL_DATA) -D libvolume_id.pc $(DESTDIR)$(usrlibdir)/pkgconfig/libvolume_id.pc + $(INSTALL) -d $(DESTDIR)$(usrlibdir)/pkgconfig + $(INSTALL_DATA) libvolume_id.pc $(DESTDIR)$(usrlibdir)/pkgconfig/libvolume_id.pc .PHONY: install uninstall: |