# Common definitions
include ../common.mak

all:
	$(MAKE) -C boot
	$(MAKE) -C src

install: all
	$(MAKE) -C boot install
	$(MAKE) -C src install
	$(MAKE) -C man install
	$(MAKE) -C dracut install
	$(MAKE) -C initramfs-tools install
	$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 doc/zipl.conf.minimal  $(DESTDIR)$(TOOLS_LIBDIR)/zipl.conf
ifeq ($(wildcard $(DESTDIR)$(SYSCONFDIR)/ziplenv),)
	$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 doc/ziplenv.minimal  $(DESTDIR)$(SYSCONFDIR)/ziplenv
endif

clean:
	$(MAKE) -C src clean
	$(MAKE) -C boot clean
