prefix?=/usr/local all: samizdat-paths.sh bin_programs=$(addprefix src/, xorriso-usb.sh btrfs-functions.sh btrfs-receive-root.sh btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh btarfs) samizdat-paths.sh # TODO: compile these here samizdat_execs=$(addprefix /home/d/src/samizdat/, wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent) initrd_files:=$(wildcard src/initrd/*) initramfs_conf_files:=$(wildcard initramfs-tools/*) .PHONY: samizdat-paths.sh samizdat-paths.sh: src/samizdat-paths.in sed -e "s?PREFIX?$(prefix)?g" $< > $@ include samizdat-paths.sh install: install ${bin_programs} ${samizdat_execs} ${instdir}${samizdat_bindir} mkdir -p ${instdir}${samizdat_initrd_files_dir} mkdir -p ${instdir}${samizdat_child_dir} mkdir -p ${instdir}${samizdat_grub_efi_dir} mkdir -p ${instdir}${samizdat_initramfs_conf_dir} mkdir -p ${instdir}${samizdat_isolinux_dir} mkdir -p ${instdir}${samizdat_linux_dir} cp -r ${initrd_files} ${instdir}${samizdat_initrd_files_dir} cp -r ${initramfs_conf_files} ${instdir}${samizdat_initramfs_conf_dir}