Codebase list httping / fe7d6c5
Makefile: allow build without gettext The msgfmt command is part of the gettext package, and is used to generate binary translation files. When gettext is not installed, build fails. Translation files are not always needed on size constrained embedded targets. Add an option to disable translation files generation using the NO_GETTEXT variable. Baruch Siach 6 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5454 ARCHIVE=/bin/tar cf -
5555 COMPRESS=/bin/gzip -9
5656
57 ifneq ($(NO_GETTEXT),yes)
5758 TRANSLATIONS=nl.mo ru.mo
59 endif
5860
5961 OBJS=gen.o http.o io.o error.o utils.o main.o tcp.o res.o socks5.o kalman.o cookies.o help.o colors.o
6062
117119 ifneq ($(DEBUG),yes)
118120 $(STRIP) $(DESTDIR)/$(BINDIR)/$(TARGET)
119121 endif
122 ifneq ($(NO_GETTEXT),yes)
120123 mkdir -p $(DESTDIR)/$(PREFIX)/share/locale/nl/LC_MESSAGES
121124 cp nl.mo $(DESTDIR)/$(PREFIX)/share/locale/nl/LC_MESSAGES/httping.mo
122125 mkdir -p $(DESTDIR)/$(PREFIX)/share/locale/ru/LC_MESSAGES
123126 cp ru.mo $(DESTDIR)/$(PREFIX)/share/locale/ru/LC_MESSAGES/httping.mo
127 endif
124128
125129
126130 makefile.inc: