summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-05-01 05:25:14 -0400
committerAndrew Cady <d@jerkface.net>2016-05-01 05:28:22 -0400
commita8e19d5d8057e82cbda2705d755f3d4e1d3da20a (patch)
tree84449f8ac6e45a5727b0abbb64eeb578c20628fd /Makefile
parent4854ffec94f70705dc95c5657e43c5f69c270a1a (diff)
remove references to files outside of this repo
(commit the files into this repo)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 24 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 893216b..101e521 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,39 @@
1prefix?=/usr/local 1prefix?=/usr/local
2 2
3all: samizdat-paths.sh 3cc_files=wait_for_files samizdat-pinentry
4cpp_files=dynmenu
4 5
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 btarfs dnsmasq-dhcp-script.sh) samizdat-paths.sh 6compiled_programs=${cc_files} ${cpp_files}
6 7
7# TODO: compile these here 8CC=gcc -std=gnu99
8samizdat_execs=$(addprefix /home/d/src/samizdat/, wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent) 9CFLAGS=-Os
9 10
10initrd_files:=$(wildcard src/initrd/*) 11all: samizdat-paths.sh ${compiled_programs}
12
13dynmenu: src/dynmenu.cpp
14 $(CXX) $(CFLAGS) $< -o $@ -lcurses
15samizdat-pinentry: src/samizdat-pinentry.c
16 $(CC) $(CFLAGS) $< -o $@ -lcurses
17wait_for_files: src/wait_for_files.c
18 $(CC) $(CFLAGS) $< -o $@
19
20bin_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-password-agent samizdat-gpg-agent) samizdat-paths.sh ${cc_files}
21
22initrd_files:=$(wildcard src/initrd/*) dynmenu samizdat-pinentry wait_for_files
11initramfs_conf_files:=$(wildcard initramfs-tools/*) 23initramfs_conf_files:=$(wildcard initramfs-tools/*)
12 24
13isolinux_files:=$(wildcard isolinux/*) 25isolinux_files:=$(wildcard isolinux/*)
14 26
15.PHONY: samizdat-paths.sh 27clean:
28 rm -f samizdat-paths.sh ${compiled_programs}
29
30.PHONY: samizdat-paths.sh all clean
16samizdat-paths.sh: src/samizdat-paths.in 31samizdat-paths.sh: src/samizdat-paths.in
17 sed -e "s?PREFIX?$(prefix)?g" $< > $@ 32 @sed -e "s?PREFIX?$(prefix)?g" $< > $@
18include samizdat-paths.sh 33include samizdat-paths.sh
19 34
20install: 35install: ${bin_programs} samizdat-paths.sh ${compiled_programs}
21 install ${bin_programs} ${samizdat_execs} ${instdir}${samizdat_bindir} 36 install ${bin_programs} ${instdir}${samizdat_bindir}
22 mkdir -p ${instdir}${samizdat_initrd_files_dir} 37 mkdir -p ${instdir}${samizdat_initrd_files_dir}
23 mkdir -p ${instdir}${samizdat_child_dir} 38 mkdir -p ${instdir}${samizdat_child_dir}
24 mkdir -p ${instdir}${samizdat_grub_efi_dir} 39 mkdir -p ${instdir}${samizdat_grub_efi_dir}