aboutsummaryrefslogtreecommitdiffstats
path: root/menu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'menu/Makefile')
-rw-r--r--menu/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/menu/Makefile b/menu/Makefile
index ea753509..102b7afe 100644
--- a/menu/Makefile
+++ b/menu/Makefile
@@ -39,9 +39,16 @@ LIBS = libmenu/libmenu.a $(LUDIR)/libutil_com.a $(LDIR)/libcom32.a $(LIBGCC)
LIBMENU = libmenu/syslnx.o libmenu/com32io.o libmenu/tui.o \
libmenu/menu.o libmenu/passwords.o libmenu/des.o libmenu/help.o
-MENUS = $(patsubst %.c,%.c32,$(wildcard *.c))
+CMENUS = $(patsubst %.c,%.c32,$(wildcard *.c))
+IMENUS = $(patsubst %.menu,%.c32,$(wildcard *.menu))
-.SUFFIXES: .S .c .o .elf .c32
+MENUS = $(CMENUS) $(IMENUS)
+
+.SUFFIXES: .S .c .o .elf .c32 .menu
+
+.PRECIOUS: %.c
+%.c: %.menu
+ python menugen.py $< $@
.PRECIOUS: %.o
%.o: %.S