--- nono/Makefile 2026/04/29 17:04:43 1.1.1.5 +++ nono/Makefile 2026/04/29 17:05:39 1.1.1.10 @@ -18,16 +18,26 @@ # MacOSX error no "Darwin" yes # Linux yes yes "Linux" yes -.if "${.MAKE.OS}" == "NetBSD" || "${.MAKE.OS}" == "Linux" +.include "Makefile.cfg" + +.if "${.MAKE.OS}" == "NetBSD" WAIT_HERE = .WAIT .endif -SUBDIR= lib debugger m680x0 fpe m88xx0 vm host po ${WAIT_HERE} cli wx +.if "${WITH_GUI}" == "yes" +SUBDIR_PO= po +SUBDIR_WX= wx +.endif + +SUBDIR= lib debugger ${WAIT_HERE} \ + m680x0 fpe m88xx0 hd64180 vm host ${SUBDIR_PO} ${WAIT_HERE} \ + cli ${SUBDIR_WX} # .pot を作る .PHONY: pot pot: - xgettext -d nono -o - -k_ --from-code utf-8 -s `cat po/POTFILES` |\ - awk -f po/header.awk - > po/nono.pot + xgettext --default-domain=nono --output=- --keyword=_ \ + --add-comments=TRANSLATORS: --from-code=utf-8 \ + -s `cat po/POTFILES` | perl po/format.pl - > po/nono.pot .include