HC := ghc HSSRCS := unicode.hs CSRCS := pickme.c OBJS := $(HSSRCS:.hs=.o) TARGET := pickme UNICODEDATA := UnicodeData.txt CFLAGS != pkg-config --cflags gtk4 | sed 's/ -/ -optc-/g' LIBS != pkg-config --libs gtk4 all: $(TARGET) $(UNICODEDATA) clean: @rm $(TARGET) $(OBJS) $(OBJS): $(HSSRCS) $(HC) -c -O $^ $(TARGET): $(CSRCS) $(OBJS) $(HC) --make -no-hs-main -g $(CFLAGS) $(LIBS) -o $(TARGET) $^ $(UNICODEDATA): wget -O $@ -o /dev/null 'https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt'