summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2015-09-14 21:05:25 -0500
committerBobby Bingham <koorogi@koorogi.info>2015-09-15 22:43:33 -0500
commitba2468c582934a97445f78bbbbb652386c642439 (patch)
treebec8f7e9d2b582d6905be840efc00d2ddf68ec38 /Makefile
parentd30a6525d237105ff77e0728fd7378cc674701a3 (diff)
search for bootloader inputs in installed share dir
We remove the hard-coded default bootloader as part of this, and instead hard-code the name of an installed default bootloader input.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9aeb8b7..925dbc2 100644
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,11 @@ share/boot/%: boot/%.elf
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
+src/saturn-mkboot.o: src/paths.h
+
+src/paths.h: config.mak
+ echo "#define DATA_PATH \"$(sharedir)\"" > $@
+
$(DESTDIR)$(bindir)/%: bin/%
$(INSTALL) -D $< $@