24 lines
691 B
Makefile
24 lines
691 B
Makefile
|
# Custom systemd Makefile that installs udev rules for LFS
|
||
|
# Bruce Dubbs 2014-04-02
|
||
|
# Hacked by Nathan Fisher 2021-02-12
|
||
|
|
||
|
include world.mk
|
||
|
VERSION=20171102
|
||
|
|
||
|
INSTALLDIRS += $(DESTDIR)/lib/udev/rules.d
|
||
|
INSTALLDIRS += $(DESTDIR)/etc/udev/rules.d
|
||
|
INSTALLDIRS += $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
|
||
|
|
||
|
install: | $(INSTALLDIRS)
|
||
|
install -m644 src/*.rules $(DESTDIR)/etc/udev/rules.d
|
||
|
install -m644 src/*_rules src/init-net-rules.sh \
|
||
|
src/rule_generator.functions $(DESTDIR)/lib/udev
|
||
|
install -m644 doc/README $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
|
||
|
install -m644 doc/*.txt $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
|
||
|
|
||
|
$(INSTALLDIRS):
|
||
|
install -d $@
|
||
|
|
||
|
clean:
|
||
|
true
|