# # Locale th_TH.TIS-620 for FreeBSD # PATH = /usr/local/share/locale/th_TH.TIS-620 LPATH = /usr/local/share/locale/th_TH NO_INSTALLED_MSG = "Your system doesn't have th_TH.TIS-620 installed. You can install it with this package." all: clean lc_all @echo @echo "Files are successfully generated." @echo lc_all: lc_ctype lc_collate lc_monetary lc_numeric lc_time lc_messages lc_ctype: .if !exists(LC_CTYPE) mklocale -o LC_CTYPE LC_CTYPE.src .endif lc_collate: .if !exists(LC_COLLATE) colldef -o LC_COLLATE LC_COLLATE.src .endif lc_monetary: LC_MONETARY lc_numeric: LC_NUMERIC lc_time: LC_TIME lc_messages: LC_MESSAGES check: @echo .if exists(${PATH}) || exists(${LPATH}) @echo "${PATH} and/or ${LPATH} " @echo "exists in your system. Consider removing?" @echo @false .else @echo ${NO_INSTALLED_MSG} @echo .endif install: lc_all check mkdir -p ${PATH} install -m 444 LC_CTYPE LC_COLLATE LC_MONETARY LC_NUMERIC LC_TIME LC_MESSAGES ${PATH} ln -sf ${PATH} ${LPATH} @echo @echo "Installation successfully completed" @echo deinstall: @echo .if exists(${PATH}) || exists(${LPATH}) .if exists(${PATH}) rm -rf ${PATH} .endif .if exists(${LPATH}) rm -rf ${LPATH} .endif .else @echo ${NO_INSTALLED_MSG} .endif @echo clean: .if exists(LC_CTYPE) rm LC_CTYPE .endif .if exists(LC_COLLATE) rm LC_COLLATE .endif