aboutsummaryrefslogtreecommitdiffstats
path: root/udev-lfs/Makefile.lfs
blob: 03a377fe27627b1929f354a6ea9670f4fd780651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Custom systemd Makefile that installs udev rules for LFS
# Bruce Dubbs 2014-04-02

# vim: tabstop=3

VERSION=20140306
SHELL=/bin/bash

ifeq ($(V),)
 VB = @
else
 VB =
endif

all:
	@echo "Use the install target"

install: 
	@mkdir -pv $(DESTDIR)/lib/udev/rules.d \
              $(DESTDIR)/etc/udev/rules.d \
              $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs

   # Copy rules
	@cp -v udev-lfs-$(VERSION)/*.rules $(DESTDIR)/etc/udev/rules.d
	@cp -v udev-lfs-$(VERSION)/*_rules           \
          udev-lfs-$(VERSION)/init-net-rules.sh \
          udev-lfs-$(VERSION)/rule_generator.functions $(DESTDIR)/lib/udev

   # 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