Simon Kelley | c8e8f5c | 2021-01-24 21:59:37 +0000 | [diff] [blame] | 1 | # dnsmasq is Copyright (c) 2000-2021 Simon Kelley |
Simon Kelley | 824af85 | 2008-02-12 20:43:05 +0000 | [diff] [blame] | 2 | # |
| 3 | # This program is free software; you can redistribute it and/or modify |
| 4 | # it under the terms of the GNU General Public License as published by |
| 5 | # the Free Software Foundation; version 2 dated June, 1991, or |
| 6 | # (at your option) version 3 dated 29 June, 2007. |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | # GNU General Public License for more details. |
| 12 | # |
Simon Kelley | 73a08a2 | 2009-02-05 20:28:08 +0000 | [diff] [blame] | 13 | # You should have received a copy of the GNU General Public License |
| 14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
Simon Kelley | 824af85 | 2008-02-12 20:43:05 +0000 | [diff] [blame] | 15 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 16 | # NOTE: Building the i18n targets requires GNU-make |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 17 | |
Kyle Swenson | 545712c | 2021-11-17 12:25:04 -0700 | [diff] [blame^] | 18 | # CRADLEPOINT |
| 19 | ROOT ?= $(abspath ../../..) |
| 20 | include $(ROOT)/Makefile.config |
| 21 | # CRADLEPOINT |
Simon Kelley | b36ae19 | 2012-02-13 12:54:34 +0000 | [diff] [blame] | 22 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 23 | # Variables you may well want to override. |
| 24 | |
Kyle Swenson | 545712c | 2021-11-17 12:25:04 -0700 | [diff] [blame^] | 25 | # CRADLEPOINT |
| 26 | PREFIX = /usr |
| 27 | # CRADLEPOINT |
| 28 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 29 | BINDIR = $(PREFIX)/sbin |
| 30 | MANDIR = $(PREFIX)/share/man |
| 31 | LOCALEDIR = $(PREFIX)/share/locale |
| 32 | BUILDDIR = $(SRC) |
Kyle Swenson | 545712c | 2021-11-17 12:25:04 -0700 | [diff] [blame^] | 33 | # CRADLEPOINT |
| 34 | |
| 35 | #DESTDIR = |
| 36 | CFLAGS += -Wall -W $(COPT_SIZE) |
| 37 | LDFLAGS += |
| 38 | COPTS = -DCPLINUX |
| 39 | # CRADLEPOINT |
| 40 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 41 | RPM_OPT_FLAGS = |
| 42 | LIBS = |
Simon Kelley | b36ae19 | 2012-02-13 12:54:34 +0000 | [diff] [blame] | 43 | |
Kyle Swenson | 545712c | 2021-11-17 12:25:04 -0700 | [diff] [blame^] | 44 | # CRADLEPOINT feature handling |
| 45 | ifeq ($(PRODUCT_FEATURE_DNSSEC),yes) |
| 46 | LDFLAGS += -lnettle -lhogweed |
| 47 | CFLAGS += -DHAVE_DNSSEC -DNO_GMP |
| 48 | endif |
| 49 | # CRADLEPOINT |
| 50 | |
Simon Kelley | e5ffdb9 | 2012-02-13 14:19:25 +0000 | [diff] [blame] | 51 | ################################################################# |
| 52 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 53 | # Variables you might want to override. |
| 54 | |
Simon Kelley | 824af85 | 2008-02-12 20:43:05 +0000 | [diff] [blame] | 55 | PKG_CONFIG = pkg-config |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 56 | INSTALL = install |
| 57 | MSGMERGE = msgmerge |
| 58 | MSGFMT = msgfmt |
| 59 | XGETTEXT = xgettext |
Simon Kelley | 824af85 | 2008-02-12 20:43:05 +0000 | [diff] [blame] | 60 | |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 61 | SRC = src |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 62 | PO = po |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 63 | MAN = man |
| 64 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 65 | ################################################################# |
Simon Kelley | fdacfb0 | 2012-02-28 15:20:25 +0000 | [diff] [blame] | 66 | |
Simon Kelley | c46c7c7 | 2012-02-29 21:37:14 +0000 | [diff] [blame] | 67 | # pmake way. (NB no spaces to keep gmake 3.82 happy) |
| 68 | top!=pwd |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 69 | # GNU make way. |
Simon Kelley | c46c7c7 | 2012-02-29 21:37:14 +0000 | [diff] [blame] | 70 | top?=$(CURDIR) |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 71 | |
Simon Kelley | 86bec2d | 2014-01-13 21:31:20 +0000 | [diff] [blame] | 72 | dbus_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DBUS $(PKG_CONFIG) --cflags dbus-1` |
| 73 | dbus_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DBUS $(PKG_CONFIG) --libs dbus-1` |
Petr Menšík | 2024f97 | 2020-11-25 17:18:55 +0100 | [diff] [blame] | 74 | ubus_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_UBUS "" --copy '-lubox -lubus'` |
Simon Kelley | 86bec2d | 2014-01-13 21:31:20 +0000 | [diff] [blame] | 75 | idn_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_IDN $(PKG_CONFIG) --cflags libidn` |
| 76 | idn_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_IDN $(PKG_CONFIG) --libs libidn` |
Simon Kelley | 43cdf1c | 2017-05-21 22:12:44 +0100 | [diff] [blame] | 77 | idn2_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LIBIDN2 $(PKG_CONFIG) --cflags libidn2` |
| 78 | idn2_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LIBIDN2 $(PKG_CONFIG) --libs libidn2` |
Simon Kelley | 86bec2d | 2014-01-13 21:31:20 +0000 | [diff] [blame] | 79 | ct_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_CONNTRACK $(PKG_CONFIG) --cflags libnetfilter_conntrack` |
| 80 | ct_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_CONNTRACK $(PKG_CONFIG) --libs libnetfilter_conntrack` |
Simon Kelley | 5ac813c | 2017-04-16 20:47:11 +0100 | [diff] [blame] | 81 | lua_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LUASCRIPT $(PKG_CONFIG) --cflags lua5.2` |
| 82 | lua_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LUASCRIPT $(PKG_CONFIG) --libs lua5.2` |
Petr Menšík | 2024f97 | 2020-11-25 17:18:55 +0100 | [diff] [blame] | 83 | nettle_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC $(PKG_CONFIG) --cflags 'nettle hogweed' \ |
Simon Kelley | a69b017 | 2021-01-24 21:53:28 +0000 | [diff] [blame] | 84 | HAVE_CRYPTOHASH $(PKG_CONFIG) --cflags nettle \ |
Petr Menšík | 2024f97 | 2020-11-25 17:18:55 +0100 | [diff] [blame] | 85 | HAVE_NETTLEHASH $(PKG_CONFIG) --cflags nettle` |
| 86 | nettle_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC $(PKG_CONFIG) --libs 'nettle hogweed' \ |
Simon Kelley | a69b017 | 2021-01-24 21:53:28 +0000 | [diff] [blame] | 87 | HAVE_CRYPTOHASH $(PKG_CONFIG) --libs nettle \ |
Petr Menšík | 2024f97 | 2020-11-25 17:18:55 +0100 | [diff] [blame] | 88 | HAVE_NETTLEHASH $(PKG_CONFIG) --libs nettle` |
Simon Kelley | 063efb3 | 2014-06-17 19:49:31 +0100 | [diff] [blame] | 89 | gmp_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC NO_GMP --copy -lgmp` |
Simon Kelley | 86bec2d | 2014-01-13 21:31:20 +0000 | [diff] [blame] | 90 | sunos_libs = `if uname | grep SunOS >/dev/null 2>&1; then echo -lsocket -lnsl -lposix4; fi` |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 91 | version = -DVERSION='\"`$(top)/bld/get-version $(top)`\"' |
Simon Kelley | 1062667 | 2015-02-01 00:15:16 +0000 | [diff] [blame] | 92 | |
| 93 | sum?=$(shell $(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' ') |
| 94 | sum!=$(CC) -DDNSMASQ_COMPILE_OPTS $(COPTS) -E $(top)/$(SRC)/dnsmasq.h | ( md5sum 2>/dev/null || md5 ) | cut -f 1 -d ' ' |
| 95 | copts_conf = .copts_$(sum) |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 96 | |
| 97 | objs = cache.o rfc1035.o util.o option.o forward.o network.o \ |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 98 | dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \ |
Simon Kelley | c5ad4e7 | 2012-02-24 16:06:20 +0000 | [diff] [blame] | 99 | helper.o tftp.o log.o conntrack.o dhcp6.o rfc3315.o \ |
Giovanni Bajo | e292e93 | 2012-04-22 14:32:02 +0200 | [diff] [blame] | 100 | dhcp-common.o outpacket.o radv.o slaac.o auth.o ipset.o \ |
Simon Kelley | c2bcd1e | 2015-12-15 17:25:21 +0000 | [diff] [blame] | 101 | domain.o dnssec.o blockdata.o tables.o loop.o inotify.o \ |
Simon Kelley | 2d76586 | 2020-11-12 22:06:07 +0000 | [diff] [blame] | 102 | poll.o rrfilter.o edns0.o arp.o crypto.o dump.o ubus.o \ |
Kyle Swenson | 545712c | 2021-11-17 12:25:04 -0700 | [diff] [blame^] | 103 | metrics.o hash_questions.o \ |
| 104 | unescape_c_string.o opendns.o # CRADLEPOINT |
Simon Kelley | 208b65c | 2006-08-05 21:41:37 +0100 | [diff] [blame] | 105 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 106 | hdrs = dnsmasq.h config.h dhcp-protocol.h dhcp6-protocol.h \ |
Kyle Swenson | 545712c | 2021-11-17 12:25:04 -0700 | [diff] [blame^] | 107 | dns-protocol.h radv-protocol.h ip6addr.h metrics.h \ |
| 108 | unescape_c_string.h opendns.h # CRADLEPOINT |
Simon Kelley | b36ae19 | 2012-02-13 12:54:34 +0000 | [diff] [blame] | 109 | |
Simon Kelley | e5ffdb9 | 2012-02-13 14:19:25 +0000 | [diff] [blame] | 110 | all : $(BUILDDIR) |
| 111 | @cd $(BUILDDIR) && $(MAKE) \ |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 112 | top="$(top)" \ |
Petr Menšík | d203af4 | 2017-05-10 21:41:57 +0100 | [diff] [blame] | 113 | build_cflags="$(version) $(dbus_cflags) $(idn2_cflags) $(idn_cflags) $(ct_cflags) $(lua_cflags) $(nettle_cflags)" \ |
Julian Kornberger | caf4d57 | 2018-07-21 21:45:03 +0100 | [diff] [blame] | 114 | build_libs="$(dbus_libs) $(idn2_libs) $(idn_libs) $(ct_libs) $(lua_libs) $(sunos_libs) $(nettle_libs) $(gmp_libs) $(ubus_libs)" \ |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 115 | -f $(top)/Makefile dnsmasq |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 116 | |
Simon Kelley | ceae52d | 2013-09-12 15:05:47 +0100 | [diff] [blame] | 117 | mostly_clean : |
| 118 | rm -f $(BUILDDIR)/*.mo $(BUILDDIR)/*.pot |
Yousong Zhou | 81c538e | 2015-01-03 16:36:14 +0000 | [diff] [blame] | 119 | rm -f $(BUILDDIR)/.copts_* $(BUILDDIR)/*.o $(BUILDDIR)/dnsmasq.a $(BUILDDIR)/dnsmasq |
Simon Kelley | ceae52d | 2013-09-12 15:05:47 +0100 | [diff] [blame] | 120 | |
| 121 | clean : mostly_clean |
| 122 | rm -f $(BUILDDIR)/dnsmasq_baseline |
| 123 | rm -f core */core |
| 124 | rm -f *~ contrib/*/*~ */*~ |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 125 | |
Simon Kelley | b8187c8 | 2005-11-26 21:46:27 +0000 | [diff] [blame] | 126 | install : all install-common |
| 127 | |
| 128 | install-common : |
Kevin Darbyshire-Bryant | 6d37924 | 2018-04-07 23:00:56 +0100 | [diff] [blame] | 129 | $(INSTALL) -d $(DESTDIR)$(BINDIR) |
| 130 | $(INSTALL) -d $(DESTDIR)$(MANDIR)/man8 |
Simon Kelley | 824af85 | 2008-02-12 20:43:05 +0000 | [diff] [blame] | 131 | $(INSTALL) -m 644 $(MAN)/dnsmasq.8 $(DESTDIR)$(MANDIR)/man8 |
Simon Kelley | e5ffdb9 | 2012-02-13 14:19:25 +0000 | [diff] [blame] | 132 | $(INSTALL) -m 755 $(BUILDDIR)/dnsmasq $(DESTDIR)$(BINDIR) |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 133 | |
Simon Kelley | e5ffdb9 | 2012-02-13 14:19:25 +0000 | [diff] [blame] | 134 | all-i18n : $(BUILDDIR) |
| 135 | @cd $(BUILDDIR) && $(MAKE) \ |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 136 | top="$(top)" \ |
| 137 | i18n=-DLOCALEDIR=\'\"$(LOCALEDIR)\"\' \ |
Simon Kelley | 43cdf1c | 2017-05-21 22:12:44 +0100 | [diff] [blame] | 138 | build_cflags="$(version) $(dbus_cflags) $(idn2_cflags) $(idn_cflags) $(ct_cflags) $(lua_cflags) $(nettle_cflags)" \ |
Fabrice Fontaine | 240da59 | 2019-06-21 09:37:19 +0200 | [diff] [blame] | 139 | build_libs="$(dbus_libs) $(idn2_libs) $(idn_libs) $(ct_libs) $(lua_libs) $(sunos_libs) $(nettle_libs) $(gmp_libs) $(ubus_libs)" \ |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 140 | -f $(top)/Makefile dnsmasq |
Simon Kelley | fdacfb0 | 2012-02-28 15:20:25 +0000 | [diff] [blame] | 141 | for f in `cd $(PO); echo *.po`; do \ |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 142 | cd $(top) && cd $(BUILDDIR) && $(MAKE) top="$(top)" -f $(top)/Makefile $${f%.po}.mo; \ |
Simon Kelley | b8187c8 | 2005-11-26 21:46:27 +0000 | [diff] [blame] | 143 | done |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 144 | |
Simon Kelley | b8187c8 | 2005-11-26 21:46:27 +0000 | [diff] [blame] | 145 | install-i18n : all-i18n install-common |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 146 | cd $(BUILDDIR); $(top)/bld/install-mo $(DESTDIR)$(LOCALEDIR) $(INSTALL) |
Simon Kelley | 1f15b81 | 2009-10-13 17:49:32 +0100 | [diff] [blame] | 147 | cd $(MAN); ../bld/install-man $(DESTDIR)$(MANDIR) $(INSTALL) |
Simon Kelley | b8187c8 | 2005-11-26 21:46:27 +0000 | [diff] [blame] | 148 | |
Simon Kelley | fdacfb0 | 2012-02-28 15:20:25 +0000 | [diff] [blame] | 149 | merge : |
Simon Kelley | f7bfbdc | 2015-06-10 22:31:02 +0100 | [diff] [blame] | 150 | @cd $(BUILDDIR) && $(MAKE) top="$(top)" -f $(top)/Makefile dnsmasq.pot |
Simon Kelley | fdacfb0 | 2012-02-28 15:20:25 +0000 | [diff] [blame] | 151 | for f in `cd $(PO); echo *.po`; do \ |
| 152 | echo -n msgmerge $(PO)/$$f && $(MSGMERGE) --no-wrap -U $(PO)/$$f $(BUILDDIR)/dnsmasq.pot; \ |
Simon Kelley | b8187c8 | 2005-11-26 21:46:27 +0000 | [diff] [blame] | 153 | done |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 154 | |
Josh Soref | 730c674 | 2017-02-06 16:14:04 +0000 | [diff] [blame] | 155 | # Canonicalise .po file. |
Simon Kelley | b7f666f | 2013-10-02 11:44:59 +0100 | [diff] [blame] | 156 | %.po : |
| 157 | @cd $(BUILDDIR) && $(MAKE) -f $(top)/Makefile dnsmasq.pot |
| 158 | mv $(PO)/$*.po $(PO)/$*.po.orig && $(MSGMERGE) --no-wrap $(PO)/$*.po.orig $(BUILDDIR)/dnsmasq.pot >$(PO)/$*.po; |
| 159 | |
Simon Kelley | e5ffdb9 | 2012-02-13 14:19:25 +0000 | [diff] [blame] | 160 | $(BUILDDIR): |
Simon Kelley | fdacfb0 | 2012-02-28 15:20:25 +0000 | [diff] [blame] | 161 | mkdir -p $(BUILDDIR) |
Simon Kelley | b36ae19 | 2012-02-13 12:54:34 +0000 | [diff] [blame] | 162 | |
Simon Kelley | ceae52d | 2013-09-12 15:05:47 +0100 | [diff] [blame] | 163 | # rules below are helpers for size tracking |
| 164 | |
| 165 | baseline : mostly_clean all |
| 166 | @cd $(BUILDDIR) && \ |
| 167 | mv dnsmasq dnsmasq_baseline |
| 168 | |
| 169 | bloatcheck : $(BUILDDIR)/dnsmasq_baseline mostly_clean all |
| 170 | @cd $(BUILDDIR) && \ |
| 171 | $(top)/bld/bloat-o-meter dnsmasq_baseline dnsmasq; \ |
| 172 | size dnsmasq_baseline dnsmasq |
Simon Kelley | 9e4abcb | 2004-01-22 19:47:41 +0000 | [diff] [blame] | 173 | |
Josh Soref | 730c674 | 2017-02-06 16:14:04 +0000 | [diff] [blame] | 174 | # rules below are targets in recursive makes with cwd=$(BUILDDIR) |
Simon Kelley | 8e4b879 | 2012-11-14 14:12:56 +0000 | [diff] [blame] | 175 | |
Yousong Zhou | 81c538e | 2015-01-03 16:36:14 +0000 | [diff] [blame] | 176 | $(copts_conf): $(hdrs) |
| 177 | @rm -f *.o .copts_* |
Simon Kelley | 8e4b879 | 2012-11-14 14:12:56 +0000 | [diff] [blame] | 178 | @touch $@ |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 179 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 180 | $(objs:.o=.c) $(hdrs): |
| 181 | ln -s $(top)/$(SRC)/$@ . |
Simon Kelley | b36ae19 | 2012-02-13 12:54:34 +0000 | [diff] [blame] | 182 | |
Yousong Zhou | d8dbd90 | 2015-01-05 17:03:35 +0000 | [diff] [blame] | 183 | $(objs): $(copts_conf) $(hdrs) |
| 184 | |
Simon Kelley | 1adadf5 | 2012-02-13 22:15:58 +0000 | [diff] [blame] | 185 | .c.o: |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 186 | $(CC) $(CFLAGS) $(COPTS) $(i18n) $(build_cflags) $(RPM_OPT_FLAGS) -c $< |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 187 | |
Yousong Zhou | d8dbd90 | 2015-01-05 17:03:35 +0000 | [diff] [blame] | 188 | dnsmasq : $(objs) |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 189 | $(CC) $(LDFLAGS) -o $@ $(objs) $(build_libs) $(LIBS) |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 190 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 191 | dnsmasq.pot : $(objs:.o=.c) $(hdrs) |
| 192 | $(XGETTEXT) -d dnsmasq --foreign-user --omit-header --keyword=_ -o $@ -i $(objs:.o=.c) |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 193 | |
Simon Kelley | 2484894 | 2012-02-29 11:23:41 +0000 | [diff] [blame] | 194 | %.mo : $(top)/$(PO)/%.po dnsmasq.pot |
Simon Kelley | 4f8ff36 | 2012-02-29 16:01:17 +0000 | [diff] [blame] | 195 | $(MSGMERGE) -o - $(top)/$(PO)/$*.po dnsmasq.pot | $(MSGFMT) -o $*.mo - |
Simon Kelley | 316e273 | 2010-01-22 20:16:09 +0000 | [diff] [blame] | 196 | |
Simon Kelley | ceae52d | 2013-09-12 15:05:47 +0100 | [diff] [blame] | 197 | .PHONY : all clean mostly_clean install install-common all-i18n install-i18n merge baseline bloatcheck |