dracut/Makefile

20 lines
683 B
Makefile
Raw Normal View History

modules.d/99base/switch_root: switch_root.c
gcc -o modules.d/99base/switch_root switch_root.c
all: modules.d/99base/switch_root
2008-12-18 23:58:15 +03:00
install:
mkdir -p $(DESTDIR)/usr/libexec/dracut
mkdir -p $(DESTDIR)/sbin
mkdir -p $(DESTDIR)/usr/libexec/dracut/modules.d
2008-12-18 23:58:15 +03:00
install -m 0755 dracut $(DESTDIR)/sbin/dracut
install -m 0755 dracut-functions $(DESTDIR)/usr/libexec/dracut/functions
for module in modules/*/*; do install -D -m 0755 $$module $(DESTDIR)/usr/libexec/dracut/modules.d ; done
2009-03-04 16:23:02 +03:00
2008-12-18 23:58:15 +03:00
clean:
rm -f *~
2009-03-04 16:23:02 +03:00
rm -f modules.d/99base/switch_root
2008-12-18 23:58:15 +03:00
archive:
2009-01-19 23:57:18 +03:00
git archive --format=tar HEAD --prefix=dracut/ |bzip2 > dracut-$(shell git rev-list --abbrev-commit -n 1 HEAD |cut -b 1-8).tar.bz2