DEPTH = ..

include $(DEPTH)/Makefile.os

.PHONY: all
all : gpl.txt.h help.txt.h

gpl.txt.h: gpl.txt Makefile
	echo 'auto constexpr gpl_txt = "\\' >$@
	< $< sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$$/\\n\\/' >> $@
	echo '";' >> $@

help.txt.h: help.txt Makefile
	echo 'static auto const help_txt = "\\' >$@
	echo 'FreeDoko -- Version " + to_string(*::version) + "\\n\\' >>$@
	echo '\\n\\' >> $@
	< $< sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/$$/\\n\\/' >> $@
	echo '";' >> $@

#include $(DEPTH)/Makefile.rules

clean :
