hw9: New homework

This commit is contained in:
2020-11-14 18:57:00 +03:00
parent 967055f9a9
commit 585df1d09c
5 changed files with 126 additions and 0 deletions

24
09_I18nL10n/Makefile Normal file
View File

@@ -0,0 +1,24 @@
CFLAGS = -Wall -Wextra -std=c99 -g
CPPFLAGS = -I.
LDFLAGS =
EXEC = main
all: $(EXEC) po/ru/$(EXEC).mo
$(EXEC): $(EXEC).c
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(LDFLAGS)
po/ru/$(EXEC).mo: po/ru/$(EXEC).po
msgfmt --output-file=$@ $<
po/ru/$(EXEC).po: po/$(EXEC).pot
msgmerge --update $@ $<
po/$(EXEC).pot: $(EXEC).c
xgettext -k_ -j -lC -c -s -o po/main.pot main.c
clean:
@rm -f $(EXEC) po/ru/*.mo *~
.PHONY: clean