aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/fonts/Makefile5
-rw-r--r--res/keymaps/Makefile7
2 files changed, 9 insertions, 3 deletions
diff --git a/res/fonts/Makefile b/res/fonts/Makefile
index 8b50213..9a2a6b3 100644
--- a/res/fonts/Makefile
+++ b/res/fonts/Makefile
@@ -3,6 +3,8 @@ CFLAGS=-I../../src/lib/include -std=c11
AS=nasm
ASFLAGS=-fbin
+all: pcvga.bf muazzam.bf
+
%.bf: %.c
$(CC) $(CFLAGS) -o $<.bin $<
./$<.bin > $@
@@ -11,8 +13,7 @@ ASFLAGS=-fbin
%.bf: %.s
$(AS) $(ASFLAGS) -o $@ $<
-all: pcvga.bf muazzam.bf
-
clean:
rm *.bf || exit 0
+rebuild: clean all
diff --git a/res/keymaps/Makefile b/res/keymaps/Makefile
index 394685e..3e7a755 100644
--- a/res/keymaps/Makefile
+++ b/res/keymaps/Makefile
@@ -1,10 +1,15 @@
CC=gcc
CFLAGS=-I../../src/lib/include -std=c11
+all: fr.km
+
%.km: %.c
$(CC) $(CFLAGS) -o $<.bin $<
./$<.bin > $@
rm $<.bin
-all: fr.km
+clean:
+ rm *.km || exit 0
+
+rebuild: clean all