diff --git a/lang/Makefile b/lang/Makefile index f0ffd555f..56562154b 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -24,13 +24,15 @@ PAGER?= less all: @cat ${.CURDIR}/README.md | ${PAGER} - .for LANG in ${LANGUAGES} ${LANG}DIR= ${LOCALEDIR:S/%%LANG%%/${LANG}/g} install-${LANG}: @mkdir -p ${DESTDIR}${${LANG}DIR} ${MSGFMT} -o ${DESTDIR}${${LANG}DIR}/OPNsense.mo ${LANG}.po +clean-${LANG}: + @rm -f ${DESTDIR}${${LANG}DIR}/OPNsense.mo + plist-${LANG}: @echo ${${LANG}DIR}/OPNsense.mo @@ -40,6 +42,7 @@ merge-${LANG}: sed -i '' -e '/^#~.*/d' ${LANG}.po INSTALL+= install-${LANG} +CLEAN+= clean-${LANG} PLIST+= plist-${LANG} MERGE+= merge-${LANG} .endfor @@ -54,6 +57,7 @@ ${TEMPLATE}: template: ${TEMPLATE} install: ${INSTALL} +clean: ${CLEAN} plist: ${PLIST} merge: ${MERGE} diff --git a/lang/README.md b/lang/README.md index 19eb20789..676f7933c 100644 --- a/lang/README.md +++ b/lang/README.md @@ -19,4 +19,8 @@ Merge the latest template changes into the actual translations: # make merge +Remove the compiled translation files from the system/chroot: + + # make clean + The build system will automatically pick up all registered languages.