summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile33
-rw-r--r--src/samizdat-paths.sh2
2 files changed, 21 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 1a80964..6489f43 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,27 @@
1all: 1prefix?=/usr/local
2 @echo unimplemented
3 2
4bin_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) 3all: samizdat-paths.sh
4
5bin_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
8samizdat_execs=$(addprefix /home/d/src/samizdat/, wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent)
5 9
6initrd_files:=$(wildcard src/initrd/*) 10initrd_files:=$(wildcard src/initrd/*)
7initramfs_conf_files:=$(wildcard initramfs-tools/*) 11initramfs_conf_files:=$(wildcard initramfs-tools/*)
8 12
9include src/samizdat-paths.sh 13.PHONY: samizdat-paths.sh
14samizdat-paths.sh: src/samizdat-paths.in
15 sed -e "s?PREFIX?$(prefix)?g" $< > $@
16include samizdat-paths.sh
10 17
11install: 18install:
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
10samizdat_initramfs_conf_dir=${samizdat_libdir}/initramfs-tools 10samizdat_initramfs_conf_dir=${samizdat_libdir}/initramfs-tools
11 11
12samizdat_iso_dir=. 12samizdat_iso_dir=.
13samizdat_execs_dir=/home/d/src/samizdat 13samizdat_execs_dir=${samizdat_bindir}