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
|
|
|
|
|
2023-08-18 16:35:49 +01:00
|
|
|
VERSION=20230818
|
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
|
|
|
|
2021-09-07 22:10:29 +01:00
|
|
|
install:
|
2023-07-29 01:23:11 +01:00
|
|
|
@mkdir -pv $(DESTDIR)/usr/lib/udev/rules.d \
|
2014-04-03 22:52:09 +01:00
|
|
|
$(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
|
2014-04-06 04:19:37 +01:00
|
|
|
@cp -v udev-lfs-$(VERSION)/*.rules $(DESTDIR)/etc/udev/rules.d
|
2023-07-29 01:23:11 +01:00
|
|
|
@cp -v udev-lfs-$(VERSION)/init-net-rules.sh \
|
2023-08-18 16:35:49 +01:00
|
|
|
udev-lfs-$(VERSION)/write_net_rules \
|
2023-07-29 01:23:11 +01:00
|
|
|
udev-lfs-$(VERSION)/rule_generator.functions $(DESTDIR)/usr/lib/udev
|
2012-09-01 03:31:13 +01:00
|
|
|
|
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
|