diff options
author | Andrew Cady <d@jerkface.net> | 2016-05-01 05:25:14 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-05-01 05:28:22 -0400 |
commit | a8e19d5d8057e82cbda2705d755f3d4e1d3da20a (patch) | |
tree | 84449f8ac6e45a5727b0abbb64eeb578c20628fd /Makefile | |
parent | 4854ffec94f70705dc95c5657e43c5f69c270a1a (diff) |
remove references to files outside of this repo
(commit the files into this repo)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 24 insertions, 9 deletions
@@ -1,24 +1,39 @@ | |||
1 | prefix?=/usr/local | 1 | prefix?=/usr/local |
2 | 2 | ||
3 | all: samizdat-paths.sh | 3 | cc_files=wait_for_files samizdat-pinentry |
4 | cpp_files=dynmenu | ||
4 | 5 | ||
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 btarfs dnsmasq-dhcp-script.sh) samizdat-paths.sh | 6 | compiled_programs=${cc_files} ${cpp_files} |
6 | 7 | ||
7 | # TODO: compile these here | 8 | CC=gcc -std=gnu99 |
8 | samizdat_execs=$(addprefix /home/d/src/samizdat/, wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent) | 9 | CFLAGS=-Os |
9 | 10 | ||
10 | initrd_files:=$(wildcard src/initrd/*) | 11 | all: samizdat-paths.sh ${compiled_programs} |
12 | |||
13 | dynmenu: src/dynmenu.cpp | ||
14 | $(CXX) $(CFLAGS) $< -o $@ -lcurses | ||
15 | samizdat-pinentry: src/samizdat-pinentry.c | ||
16 | $(CC) $(CFLAGS) $< -o $@ -lcurses | ||
17 | wait_for_files: src/wait_for_files.c | ||
18 | $(CC) $(CFLAGS) $< -o $@ | ||
19 | |||
20 | 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-password-agent samizdat-gpg-agent) samizdat-paths.sh ${cc_files} | ||
21 | |||
22 | initrd_files:=$(wildcard src/initrd/*) dynmenu samizdat-pinentry wait_for_files | ||
11 | initramfs_conf_files:=$(wildcard initramfs-tools/*) | 23 | initramfs_conf_files:=$(wildcard initramfs-tools/*) |
12 | 24 | ||
13 | isolinux_files:=$(wildcard isolinux/*) | 25 | isolinux_files:=$(wildcard isolinux/*) |
14 | 26 | ||
15 | .PHONY: samizdat-paths.sh | 27 | clean: |
28 | rm -f samizdat-paths.sh ${compiled_programs} | ||
29 | |||
30 | .PHONY: samizdat-paths.sh all clean | ||
16 | samizdat-paths.sh: src/samizdat-paths.in | 31 | samizdat-paths.sh: src/samizdat-paths.in |
17 | sed -e "s?PREFIX?$(prefix)?g" $< > $@ | 32 | @sed -e "s?PREFIX?$(prefix)?g" $< > $@ |
18 | include samizdat-paths.sh | 33 | include samizdat-paths.sh |
19 | 34 | ||
20 | install: | 35 | install: ${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} |