qubes-installer-qubes-os/Makefile.builder

23 lines
823 B
Makefile
Raw Normal View History

ifeq ($(ISO_LIVEUSB),1)
RPM_SPEC_FILES.dom0 += \
livecd-tools/livecd-tools.spec \
2018-05-09 10:32:22 +00:00
live/qubes-live.spec
endif
RPM_SPEC_FILES := $(RPM_SPEC_FILES.$(PACKAGE_SET))
2018-05-09 10:32:22 +00:00
SOURCE_COPY_IN := $(RPM_SPEC_FILES.dom0)
2018-05-09 10:32:22 +00:00
$(RPM_SPEC_FILES.dom0): SPEC=$(notdir $@)
$(RPM_SPEC_FILES.dom0): PACKAGE=$(dir $@)
$(RPM_SPEC_FILES.dom0): SOURCE_ARCHIVE_NAME=$(notdir $(shell $(RPM_PLUGIN_DIR)/tools/spectool --list-files --source 0 $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE)/$(SPEC) | cut -d' ' -f2))
$(RPM_SPEC_FILES.dom0):
# Create the archive for specific Qubes packages
[[ -e $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE)/$(SOURCE_ARCHIVE_NAME) ]] \
|| $(BUILDER_DIR)/scripts/create-archive $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE) $(SOURCE_ARCHIVE_NAME)
NO_ARCHIVE = 1
dist-package-build: RPM_SOURCE_DIR=$(dir $(DIST_SRC)/$(PACKAGE))
# vim: ft=make