Blame Makefile-boot.am

rpm-build 0fba15
# Makefile for boot module
rpm-build 0fba15
#
rpm-build 0fba15
# Copyright (C) 2013 Colin Walters <walters@verbum.org>
rpm-build 0fba15
#
rpm-build 0fba15
# SPDX-License-Identifier: LGPL-2.0+
rpm-build 0fba15
#
rpm-build 0fba15
# This library is free software; you can redistribute it and/or
rpm-build 0fba15
# modify it under the terms of the GNU Lesser General Public
rpm-build 0fba15
# License as published by the Free Software Foundation; either
rpm-build 0fba15
# version 2 of the License, or (at your option) any later version.
rpm-build 0fba15
#
rpm-build 0fba15
# This library is distributed in the hope that it will be useful,
rpm-build 0fba15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 0fba15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build 0fba15
# Lesser General Public License for more details.
rpm-build 0fba15
#
rpm-build 0fba15
# You should have received a copy of the GNU Lesser General Public
rpm-build 0fba15
# License along with this library; if not, write to the
rpm-build 0fba15
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
rpm-build 0fba15
# Boston, MA 02111-1307, USA.
rpm-build 0fba15
rpm-build 0fba15
if BUILDOPT_DRACUT
rpm-build 0fba15
# Not using $(libdir) here is intentional, dracut modules go in prefix/lib
rpm-build 0fba15
dracutmoddir = $(prefix)/lib/dracut/modules.d/98ostree
rpm-build 0fba15
dracutmod_SCRIPTS = src/boot/dracut/module-setup.sh
rpm-build 0fba15
endif
rpm-build 0fba15
if BUILDOPT_DRACUT_CONF
rpm-build 0fba15
dracutconfdir = $(sysconfdir)/dracut.conf.d
rpm-build 0fba15
dracutconf_DATA = src/boot/dracut/ostree.conf
rpm-build 0fba15
endif
rpm-build 0fba15
rpm-build 0fba15
if BUILDOPT_MKINITCPIO
rpm-build 0fba15
mkinitcpioinstalldir = $(prefix)/lib/initcpio/install
rpm-build 0fba15
mkinitcpioinstall_SCRIPTS = src/boot/mkinitcpio/ostree
rpm-build 0fba15
rpm-build 0fba15
mkinitcpioconfdir = $(sysconfdir)
rpm-build 0fba15
mkinitcpioconf_DATA = src/boot/mkinitcpio/ostree-mkinitcpio.conf
rpm-build 0fba15
endif
rpm-build 0fba15
rpm-build 0fba15
if BUILDOPT_SYSTEMD
rpm-build 0fba15
systemdsystemunit_DATA = src/boot/ostree-prepare-root.service \
rpm-build 0fba15
	src/boot/ostree-remount.service \
rpm-build 0fba15
	src/boot/ostree-finalize-staged.service \
rpm-build 0fba15
	src/boot/ostree-finalize-staged.path \
rpm-build 0fba15
	$(NULL)
rpm-build 0fba15
systemdtmpfilesdir = $(prefix)/lib/tmpfiles.d
rpm-build 0fba15
dist_systemdtmpfiles_DATA = src/boot/ostree-tmpfiles.conf
rpm-build 0fba15
rpm-build 0fba15
# Allow the distcheck install under $prefix test to pass
rpm-build 0fba15
AM_DISTCHECK_CONFIGURE_FLAGS += --with-systemdsystemunitdir='$${libdir}/systemd/system'
rpm-build 0fba15
endif
rpm-build 0fba15
rpm-build 0fba15
if !BUILDOPT_BUILTIN_GRUB2_MKCONFIG
rpm-build 0fba15
# We're using the system grub2-mkconfig generator
rpm-build 0fba15
pkglibexec_SCRIPTS += src/boot/grub2/grub2-15_ostree
rpm-build 0fba15
install-grub2-config-hook:
rpm-build 0fba15
	mkdir -p $(DESTDIR)$(grub2configdir)
rpm-build 0fba15
	ln -sf $(pkglibexecdir)/grub2-15_ostree $(DESTDIR)$(grub2configdir)/15_ostree
rpm-build 0fba15
grub2configdir = $(sysconfdir)/grub.d
rpm-build 0fba15
INSTALL_DATA_HOOKS += install-grub2-config-hook
rpm-build 0fba15
else
rpm-build 0fba15
# We're using our internal generator
rpm-build 0fba15
ostree_boot_SCRIPTS += src/boot/grub2/ostree-grub-generator
rpm-build 0fba15
endif
rpm-build 0fba15
rpm-build 0fba15
EXTRA_DIST += src/boot/dracut/module-setup.sh \
rpm-build 0fba15
	src/boot/dracut/ostree.conf \
rpm-build 0fba15
	src/boot/mkinitcpio/ostree \
rpm-build 0fba15
	src/boot/ostree-prepare-root.service \
rpm-build 0fba15
	src/boot/ostree-finalize-staged.path \
rpm-build 0fba15
	src/boot/ostree-remount.service \
rpm-build 0fba15
	src/boot/ostree-finalize-staged.service \
rpm-build 0fba15
	src/boot/grub2/grub2-15_ostree \
rpm-build 0fba15
	src/boot/grub2/ostree-grub-generator \
rpm-build 0fba15
	$(NULL)