Commit 3bacf06d authored by Phil Blundell's avatar Phil Blundell

From Philip Chong <pchong@r-491a.ihouse.berkeley.edu>

 - don't try to install ipmaddr/iptunnel if they weren't built
 - make i18n-disabled builds work better
parent bc26cb06
......@@ -215,8 +215,10 @@ installbin:
install -m 0755 hostname ${BASEDIR}/bin
install -m 0755 slattach $(BASEDIR)/sbin
install -m 0755 plipconfig $(BASEDIR)/sbin
ifeq ($(HAVE_IP_TOOLS),1)
install -m 0755 ipmaddr $(BASEDIR)/sbin
install -m 0755 iptunnel $(BASEDIR)/sbin
endif
ln -fs hostname $(BASEDIR)/bin/dnsdomainname
ln -fs hostname $(BASEDIR)/bin/ypdomainname
ln -fs hostname $(BASEDIR)/bin/nisdomainname
......
......@@ -24,6 +24,13 @@
INSTALL=install
-include ../config.make
ifeq ($(I18N),1)
LANGS=`ls -d * | grep -v Makefile`
else
LANGS=en_US
endif
all:
clean:
......@@ -33,7 +40,7 @@ clean:
clobber: clean
install:
LANGS=`ls -d * | grep -v Makefile` ; \
LANGS=$(LANGS) ; \
for LANG in $$LANGS; do \
cd $$LANG; \
for SECTION in 1 5 8; do \
......
......@@ -7,7 +7,12 @@ TUPDATE = tupdate
NLSPACKAGE = net-tools
-include ../config.make
ifeq ($(I18N),1)
CATALOGS = de.mo pt_BR.mo
else
CATALOGS =
endif
POTFILES=../arp.c ../hostname.c ../ifconfig.c ../netstat.c ../rarp.c \
../route.c ../plipconfig.c ../iptunnel.c ../statistics.c \
......@@ -62,7 +67,8 @@ distclean: clean
depend:
install: $(CATALOGS)
for n in $(CATALOGS); do \
catalogs='$(CATALOGS)'; \
for n in $$catalogs; do \
l=`basename $$n .mo`; \
$(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l; \
$(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l/LC_MESSAGES; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment