blob: 893216bd80c95e2b89295bc80239a45d7b0ce16c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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 dnsmasq-dhcp-script.sh) 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/*)
isolinux_files:=$(wildcard isolinux/*)
.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}
cp -r ${isolinux_files} ${instdir}${samizdat_isolinux_dir}
|