xwords/xwords4/android/scripts/prefsWrapper.mk
Eric House 309fcece03 generate mapping from prefs file to binding to fix reset
I balked at writing code consisting of a bunch of classes there only to
provide a mapping to resource file IDs, instead opting to generate them.
(The right move might have been to generate everything from the old
xwprefs.xml, but it's too late for that. :-)
2021-02-18 15:57:10 -08:00

18 lines
365 B
Makefile

# -*- mode: Makefile -*-
SRCS = $(wildcard ./app/src/main/res/xml/prefs*.xml)
TARGET = ./app/src/main/java/org/eehouse/android/xw4/gen/PrefsWrappers.java
PREFS_WRAPPER_GEN = ./scripts/genPrefsWrapper.sh
.PHONY: all clean
RES_SRC = ./res_src
RES_DEST = ./app/src/main/res
all: $(TARGET)
$(TARGET): $(SRCS)
$(PREFS_WRAPPER_GEN) $^ > $@
clean:
rm -f $(TARGET)