1
0

Makefile.lfs 816 B

12345678910111213141516171819202122232425262728293031
  1. # Custom systemd Makefile that installs udev rules for LFS
  2. # Bruce Dubbs 2014-04-02
  3. # vim: tabstop=3
  4. VERSION=20171102
  5. SHELL=/bin/bash
  6. ifeq ($(V),)
  7. VB = @
  8. else
  9. VB =
  10. endif
  11. all:
  12. @echo "Use the install target"
  13. install:
  14. @mkdir -pv $(DESTDIR)/lib/udev/rules.d \
  15. $(DESTDIR)/etc/udev/rules.d \
  16. $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
  17. # Copy rules
  18. @cp -v udev-lfs-$(VERSION)/*.rules $(DESTDIR)/etc/udev/rules.d
  19. @cp -v udev-lfs-$(VERSION)/*_rules \
  20. udev-lfs-$(VERSION)/init-net-rules.sh \
  21. udev-lfs-$(VERSION)/rule_generator.functions $(DESTDIR)/lib/udev
  22. # Copy documentation
  23. @cp -v udev-lfs-$(VERSION)/README $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
  24. @cp -v udev-lfs-$(VERSION)/*.txt $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs