]> git.ipfire.org Git - thirdparty/dracut.git/blame - Makefile
small corrections and obsolete mkinitrd only when defined in specfile
[thirdparty/dracut.git] / Makefile
CommitLineData
c4da2407
HH
1modules.d/99base/switch_root: switch_root.c
2 gcc -o modules.d/99base/switch_root switch_root.c
3
4all: modules.d/99base/switch_root
533cd778
JK
5
6install:
7 mkdir -p $(DESTDIR)/usr/libexec/dracut
8 mkdir -p $(DESTDIR)/sbin
6337e3ed 9 mkdir -p $(DESTDIR)/usr/libexec/dracut/modules.d
533cd778 10 install -m 0755 dracut $(DESTDIR)/sbin/dracut
533cd778 11 install -m 0755 dracut-functions $(DESTDIR)/usr/libexec/dracut/functions
f8a22bfb 12 for module in modules.d/*/*; do install -D -m 0755 $$module $(DESTDIR)/usr/libexec/dracut/modules.d ; done
834f6145 13
533cd778
JK
14clean:
15 rm -f *~
834f6145 16 rm -f modules.d/99base/switch_root
533cd778
JK
17
18archive:
e47d25ff 19 git archive --format=tar HEAD --prefix=dracut/ |bzip2 > dracut-$(shell git rev-list --abbrev-commit -n 1 HEAD |cut -b 1-8).tar.bz2