Aldonis Makefile

This commit is contained in:
1010 2024-02-14 09:56:35 +00:00
parent 43d9ab7412
commit 9495dd644e
1 changed files with 22 additions and 0 deletions

22
Makefile Normal file
View File

@ -0,0 +1,22 @@
PROGRAM_NAME=secreto
PROGRAM_DIR=/usr/bin
DATA_DIR=/usr/share
LOCALEDIR=$(DATA_DIR)/locale
install:
install -Dm755 secreto.py $(PROGRAM_DIR)/$(PROGRAM_NAME)
for i in $$(cd po/ && ls *.po | sed 's/\.po$$//'); do \
msgfmt --statistics po/$$i.po -o po/$$i.mo; \
install -Dm644 po/$$i.mo "$(LOCALEDIR)/$$i/LC_MESSAGES/secreto.mo"; \
done
uninstall:
rm -Rf $(PROGRAM_DIR)/$(PROGRAM_NAME)
for i in $$(cd po/ && ls ??.po | sed 's/\.po$$//'); do \
rm -f "$(LOCALEDIR)/$$i/LC_MESSAGES/secreto.mo"; \
done
clean:
rm -f po/*.mo