- install -o root -g root -m 755 -s lspci setpci $(ROOT)/sbin
- install -o root -g root -m 644 pci.ids $(PREFIX)/share
- install -o root -g root -m 644 lspci.8 setpci.8 $(PREFIX)/man/man8
- # Remove relics from old versions
- rm -f $(ROOT)/etc/pci.ids
-
-dist: clean
-# cp /usr/src/linux/include/linux/pci.h lib/header.h
- sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X --exclude CVS --exclude tmp'
-# rm -f lib/header.h
-
-.PHONY: all lib clean install dist man
+# -c is ignored on Linux, but required on FreeBSD
+ $(DIRINSTALL) -m 755 $(SBINDIR) $(SHAREDIR) $(MANDIR)/man8
+ $(INSTALL) -c -m 755 -s lspci setpci $(SBINDIR)
+ $(INSTALL) -c -m 755 update-pciids $(SBINDIR)
+ $(INSTALL) -c -m 644 pci.ids $(SHAREDIR)
+ $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(MANDIR)/man8
+
+uninstall: all
+ rm -f $(SBINDIR)/lspci $(SBINDIR)/setpci $(SBINDIR)/update-pciids
+ rm -f $(SHAREDIR)/pci.ids
+ rm -f $(MANDIR)/man8/lspci.8 $(MANDIR)/man8/setpci.8 $(MANDIR)/man8/update-pciids.8
+
+get-ids:
+ cp ~/tree/pciids/pci.ids pci.ids
+
+.PHONY: all clean distclean install uninstall get-ids force