From Philip Chong <pchong@r-491a.ihouse.berkeley.edu>
authorPhil Blundell <philb@gnu.org>
Thu, 25 Mar 1999 11:40:23 +0000 (11:40 +0000)
committerPhil Blundell <philb@gnu.org>
Thu, 25 Mar 1999 11:40:23 +0000 (11:40 +0000)
 - don't try to install ipmaddr/iptunnel if they weren't built
 - make i18n-disabled builds work better

Makefile
man/Makefile
po/Makefile

index 5498d3f..5cd801d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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
index 6d76872..ebf04df 100644 (file)
 
 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 \
index 8253c24..da58db5 100644 (file)
@@ -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; \