2014-04-03 22:52:09 +01:00
|
|
|
# Custom systemd Makefile that installs udev rules for LFS
|
|
|
|
# Bruce Dubbs 2014-04-02
|
2012-09-01 03:31:13 +01:00
|
|
|
|
|
|
|
# vim: tabstop=3
|
|
|
|
|
2014-04-03 22:52:09 +01:00
|
|
|
VERSION=20140302
|
2012-09-01 03:31:13 +01:00
|
|
|
SHELL=/bin/bash
|
|
|
|
|
|
|
|
ifeq ($(V),)
|
|
|
|
VB = @
|
|
|
|
else
|
|
|
|
VB =
|
|
|
|
endif
|
|
|
|
|
2014-04-03 22:52:09 +01:00
|
|
|
all:
|
|
|
|
@echo "Use the install target"
|
2012-09-01 03:31:13 +01:00
|
|
|
|
2014-04-03 22:52:09 +01:00
|
|
|
install:
|
|
|
|
@mkdir -pv $(DESTDIR)/lib/udev/rules.d \
|
|
|
|
$(DESTDIR)/etc/udev/rules.d \
|
|
|
|
$(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
|
2012-09-01 03:31:13 +01:00
|
|
|
|
2014-04-03 22:52:09 +01:00
|
|
|
# Copy rules
|
|
|
|
@cp -v udev-lfs-$(VERSION)/*.rules $(DESTDIR)/etc/udev/rules.d
|
|
|
|
@cp -v udev-lfs-$(VERSION)/*_rules $(DESTDIR)/lib/udev
|
2012-09-01 03:31:13 +01:00
|
|
|
@cp -v udev-lfs-$(VERSION)/init-net-rules.sh $(DESTDIR)/lib/udev
|
|
|
|
|
2014-04-03 22:52:09 +01:00
|
|
|
# Copy documentation
|
|
|
|
@cp -v udev-lfs-$(VERSION)/README $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
|
|
|
|
@cp -v udev-lfs-$(VERSION)/*.txt $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
|