Skip to content
Snippets Groups Projects
  • David Runge's avatar
    5fbbb05a
    Removing dist target · 5fbbb05a
    David Runge authored
    Makefile:
    Removing the dist target. It requires to increment a number on each
    release.
    This workflow can be entirely circumvented by signed commit tags and
    using those for packaging.
    Verified
    5fbbb05a
    History
    Removing dist target
    David Runge authored
    Makefile:
    Removing the dist target. It requires to increment a number on each
    release.
    This workflow can be entirely circumvented by signed commit tags and
    using those for packaging.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Makefile 1.01 KiB
INSTALL_FILES=$(wildcard archiso/initcpio/install/*)
HOOKS_FILES=$(wildcard archiso/initcpio/hooks/*)
SCRIPT_FILES=$(wildcard archiso/initcpio/script/*)

INSTALL_DIR=$(DESTDIR)/usr/lib/initcpio/install
HOOKS_DIR=$(DESTDIR)/usr/lib/initcpio/hooks
SCRIPT_DIR=$(DESTDIR)/usr/lib/initcpio

DOC_FILES=$(wildcard docs/*)

DOC_DIR=$(DESTDIR)/usr/share/doc/archiso


all:

install: install-program install-initcpio install-examples install-doc

install-program:
	install -D -m 755 archiso/mkarchiso $(DESTDIR)/usr/bin/mkarchiso

install-initcpio:
	install -d $(SCRIPT_DIR) $(HOOKS_DIR) $(INSTALL_DIR)
	install -m 755 -t $(SCRIPT_DIR) $(SCRIPT_FILES)
	install -m 644 -t $(HOOKS_DIR) $(HOOKS_FILES)
	install -m 644 -t $(INSTALL_DIR) $(INSTALL_FILES)

install-examples:
	install -d -m 755 $(DESTDIR)/usr/share/archiso/
	cp -a --no-preserve=ownership configs $(DESTDIR)/usr/share/archiso/

install-doc:
	install -d $(DOC_DIR)
	install -m 644 -t $(DOC_DIR) $(DOC_FILES)

.PHONY: install install-program install-initcpio install-examples install-doc