diff options
-rw-r--r-- | Makefile | 33 | ||||
-rw-r--r-- | src/samizdat-paths.sh | 2 |
2 files changed, 21 insertions, 14 deletions
@@ -1,20 +1,27 @@ | |||
1 | all: | 1 | prefix?=/usr/local |
2 | @echo unimplemented | ||
3 | 2 | ||
4 | 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 samizdat-paths.sh qemu.sh) | 3 | all: samizdat-paths.sh |
4 | |||
5 | 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) samizdat-paths.sh | ||
6 | |||
7 | # TODO: compile these here | ||
8 | samizdat_execs=$(addprefix /home/d/src/samizdat/, wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent) | ||
5 | 9 | ||
6 | initrd_files:=$(wildcard src/initrd/*) | 10 | initrd_files:=$(wildcard src/initrd/*) |
7 | initramfs_conf_files:=$(wildcard initramfs-tools/*) | 11 | initramfs_conf_files:=$(wildcard initramfs-tools/*) |
8 | 12 | ||
9 | include src/samizdat-paths.sh | 13 | .PHONY: samizdat-paths.sh |
14 | samizdat-paths.sh: src/samizdat-paths.in | ||
15 | sed -e "s?PREFIX?$(prefix)?g" $< > $@ | ||
16 | include samizdat-paths.sh | ||
10 | 17 | ||
11 | install: | 18 | install: |
12 | install ${bin_programs} ${samizdat_bindir} | 19 | install ${bin_programs} ${samizdat_execs} ${instdir}${samizdat_bindir} |
13 | mkdir -p ${samizdat_initrd_files_dir} | 20 | mkdir -p ${instdir}${samizdat_initrd_files_dir} |
14 | mkdir -p ${samizdat_child_dir} | 21 | mkdir -p ${instdir}${samizdat_child_dir} |
15 | mkdir -p ${samizdat_grub_efi_dir} | 22 | mkdir -p ${instdir}${samizdat_grub_efi_dir} |
16 | mkdir -p ${samizdat_initramfs_conf_dir} | 23 | mkdir -p ${instdir}${samizdat_initramfs_conf_dir} |
17 | mkdir -p ${samizdat_isolinux_dir} | 24 | mkdir -p ${instdir}${samizdat_isolinux_dir} |
18 | mkdir -p ${samizdat_linux_dir} | 25 | mkdir -p ${instdir}${samizdat_linux_dir} |
19 | cp -r ${initrd_files} ${samizdat_initrd_files_dir} | 26 | cp -r ${initrd_files} ${instdir}${samizdat_initrd_files_dir} |
20 | cp -r ${initramfs_conf_files} ${samizdat_initramfs_conf_dir} | 27 | cp -r ${initramfs_conf_files} ${instdir}${samizdat_initramfs_conf_dir} |
diff --git a/src/samizdat-paths.sh b/src/samizdat-paths.sh index fc6468d..6548564 100644 --- a/src/samizdat-paths.sh +++ b/src/samizdat-paths.sh | |||
@@ -10,4 +10,4 @@ samizdat_bindir=/usr/local/bin | |||
10 | samizdat_initramfs_conf_dir=${samizdat_libdir}/initramfs-tools | 10 | samizdat_initramfs_conf_dir=${samizdat_libdir}/initramfs-tools |
11 | 11 | ||
12 | samizdat_iso_dir=. | 12 | samizdat_iso_dir=. |
13 | samizdat_execs_dir=/home/d/src/samizdat | 13 | samizdat_execs_dir=${samizdat_bindir} |