- install -m 755 -s lspci setpci $(ROOT)/sbin
- install -m 644 pci.ids $(PREFIX)/share
- install -m 644 lspci.8 setpci.8 $(PREFIX)/man/man8
- # Remove relics from old versions
+# -c is ignored on Linux, but required on FreeBSD
+ $(DIRINSTALL) -m 755 $(ROOT)/sbin $(PREFIX)/share $(MANDIR)/man8
+ $(INSTALL) -c -m 755 -s lspci setpci $(ROOT)/sbin
+ if [ ! -f $(PREFIX)/share/pci.ids -o pci.ids -nt $(PREFIX)/share/pci.ids ] ; then \
+ $(INSTALL) -c -m 644 pci.ids $(PREFIX)/share ; \
+ elif [ -f $(PREFIX)/share/pci.ids ] ; then \
+ echo "$(PREFIX)/share/pci.ids is same or newer than the version to be installed, skipping." ; \
+ fi
+ $(INSTALL) -c -m 644 lspci.8 setpci.8 $(MANDIR)/man8
+# Remove relics from old versions