forked from j0ju/debian-initrd-debug-helper-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (29 loc) · 693 Bytes
/
Makefile
File metadata and controls
33 lines (29 loc) · 693 Bytes
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
32
33
#- makefile -
# vim: ft=make:noexpandtab:ts=2:sw=2
INITRAMDIR = /etc/initramfs-tools
TOOLDIR = /usr/local/bin
all:
echo "as root call"
echo " make install"
install:
@set -e; \
for f in hooks/* scripts/*; do \
dir="$(INITRAMDIR)/$${f%/*}"; \
dest="$(INITRAMDIR)/$${f}"; \
echo "INSTALL $${f} -> $${dest}"; \
mkdir -p "$$dir"; \
cp -a "$$f" "$$dest"; \
chown root: "$$dest"; \
chmod 744 "$$dest"; \
done; \
for f in tools/*; do \
dir="$(TOOLDIR)/"; \
dest="$(TOOLDIR)/$${f#*/}"; \
echo "INSTALL $${f} -> $${dest}"; \
mkdir -p "$$dir"; \
cp -a "$$f" "$$dest"; \
chown root: "$$dest"; \
chmod 744 "$$dest"; \
done
update:
update-initramfs -k$$(uname -r) -u