paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 1 | # Makefile.in generated automatically by automake 1.5 from Makefile.am. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 3 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
| 4 | # Free Software Foundation, Inc. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5 | # This Makefile.in is free software; the Free Software Foundation |
| 6 | # gives unlimited permission to copy and/or distribute it, |
| 7 | # with or without modifications, as long as this notice is preserved. |
| 8 | |
| 9 | # This program is distributed in the hope that it will be useful, |
| 10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 12 | # PARTICULAR PURPOSE. |
| 13 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 14 | @SET_MAKE@ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 15 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 16 | SHELL = @SHELL@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 17 | |
| 18 | srcdir = @srcdir@ |
| 19 | top_srcdir = @top_srcdir@ |
| 20 | VPATH = @srcdir@ |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 21 | prefix = @prefix@ |
| 22 | exec_prefix = @exec_prefix@ |
| 23 | |
| 24 | bindir = @bindir@ |
| 25 | sbindir = @sbindir@ |
| 26 | libexecdir = @libexecdir@ |
| 27 | datadir = @datadir@ |
| 28 | sysconfdir = @sysconfdir@ |
| 29 | sharedstatedir = @sharedstatedir@ |
| 30 | localstatedir = @localstatedir@ |
| 31 | libdir = @libdir@ |
| 32 | infodir = @infodir@ |
| 33 | mandir = @mandir@ |
| 34 | includedir = @includedir@ |
| 35 | oldincludedir = /usr/include |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 36 | pkgdatadir = $(datadir)/@PACKAGE@ |
| 37 | pkglibdir = $(libdir)/@PACKAGE@ |
| 38 | pkgincludedir = $(includedir)/@PACKAGE@ |
| 39 | top_builddir = . |
| 40 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 41 | ACLOCAL = @ACLOCAL@ |
| 42 | AUTOCONF = @AUTOCONF@ |
| 43 | AUTOMAKE = @AUTOMAKE@ |
| 44 | AUTOHEADER = @AUTOHEADER@ |
| 45 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 46 | INSTALL = @INSTALL@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 47 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 48 | INSTALL_DATA = @INSTALL_DATA@ |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 49 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 50 | INSTALL_HEADER = $(INSTALL_DATA) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 51 | transform = @program_transform_name@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 52 | NORMAL_INSTALL = : |
| 53 | PRE_INSTALL = : |
| 54 | POST_INSTALL = : |
| 55 | NORMAL_UNINSTALL = : |
| 56 | PRE_UNINSTALL = : |
| 57 | POST_UNINSTALL = : |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 58 | host_alias = @host_alias@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 59 | host_triplet = @host@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 60 | AMTAR = @AMTAR@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 61 | AR = @AR@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 62 | AWK = @AWK@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 63 | BGPD = @BGPD@ |
| 64 | CC = @CC@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 65 | CPP = @CPP@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 66 | CURSES = @CURSES@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 67 | DEPDIR = @DEPDIR@ |
| 68 | EXEEXT = @EXEEXT@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 69 | IF_METHOD = @IF_METHOD@ |
| 70 | IF_PROC = @IF_PROC@ |
| 71 | INCLUDES = @INCLUDES@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 72 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 73 | IPFORWARD = @IPFORWARD@ |
| 74 | KERNEL_METHOD = @KERNEL_METHOD@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 75 | LIBPAM = @LIBPAM@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 76 | LIB_IPV6 = @LIB_IPV6@ |
| 77 | LIB_REGEX = @LIB_REGEX@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 78 | MULTIPATH_NUM = @MULTIPATH_NUM@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 79 | OBJEXT = @OBJEXT@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 80 | OSPF6D = @OSPF6D@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 81 | OSPFAPI = @OSPFAPI@ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 82 | OSPFCLIENT = @OSPFCLIENT@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 83 | OSPFD = @OSPFD@ |
| 84 | OTHER_METHOD = @OTHER_METHOD@ |
| 85 | PACKAGE = @PACKAGE@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 86 | RANLIB = @RANLIB@ |
| 87 | RIPD = @RIPD@ |
| 88 | RIPNGD = @RIPNGD@ |
| 89 | RTREAD_METHOD = @RTREAD_METHOD@ |
| 90 | RT_METHOD = @RT_METHOD@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 91 | VERSION = @VERSION@ |
| 92 | VTYSH = @VTYSH@ |
| 93 | ZEBRA = @ZEBRA@ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 94 | am__include = @am__include@ |
| 95 | am__quote = @am__quote@ |
| 96 | install_sh = @install_sh@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 97 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 98 | SUBDIRS = lib @ZEBRA@ @BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ @VTYSH@ @OSPFCLIENT@ doc |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 99 | |
| 100 | EXTRA_DIST = aclocal.m4 SERVICES TODO REPORTING-BUGS vtysh/Makefile.in \ |
| 101 | vtysh/Makefile.am update-autotools |
| 102 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 103 | subdir = . |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 104 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
| 105 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
| 106 | CONFIG_HEADER = config.h |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 107 | CONFIG_CLEAN_FILES = |
| 108 | DIST_SOURCES = |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 109 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 110 | RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ |
| 111 | uninstall-info-recursive all-recursive install-data-recursive \ |
| 112 | install-exec-recursive installdirs-recursive install-recursive \ |
| 113 | uninstall-recursive check-recursive installcheck-recursive |
| 114 | DIST_COMMON = README ./stamp-h.in AUTHORS COPYING COPYING.LIB ChangeLog \ |
| 115 | INSTALL Makefile.am Makefile.in NEWS TODO acconfig.h aclocal.m4 \ |
| 116 | config.guess config.h.in config.sub configure configure.ac \ |
| 117 | configure.in depcomp install-sh missing mkinstalldirs |
| 118 | DIST_SUBDIRS = $(SUBDIRS) |
| 119 | all: config.h |
| 120 | $(MAKE) $(AM_MAKEFLAGS) all-recursive |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 121 | |
| 122 | .SUFFIXES: |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 123 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) |
| 124 | cd $(top_srcdir) && \ |
| 125 | $(AUTOMAKE) --foreign Makefile |
| 126 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
| 127 | cd $(top_builddir) && \ |
| 128 | CONFIG_HEADERS= CONFIG_LINKS= \ |
| 129 | CONFIG_FILES=$@ $(SHELL) ./config.status |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 130 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 131 | $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 132 | $(SHELL) ./config.status --recheck |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 133 | $(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 134 | cd $(srcdir) && $(AUTOCONF) |
| 135 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 136 | $(ACLOCAL_M4): configure.ac |
| 137 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 138 | config.h: stamp-h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 139 | @if test ! -f $@; then \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 140 | rm -f stamp-h; \ |
| 141 | $(MAKE) stamp-h; \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 142 | else :; fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 143 | stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 144 | @rm -f stamp-h stamp-hT |
| 145 | @echo timestamp > stamp-hT 2> /dev/null |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 146 | cd $(top_builddir) \ |
| 147 | && CONFIG_FILES= CONFIG_HEADERS=config.h \ |
| 148 | $(SHELL) ./config.status |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 149 | @mv stamp-hT stamp-h |
| 150 | $(srcdir)/config.h.in: $(srcdir)/./stamp-h.in |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 151 | @if test ! -f $@; then \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 152 | rm -f $(srcdir)/./stamp-h.in; \ |
| 153 | $(MAKE) $(srcdir)/./stamp-h.in; \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 154 | else :; fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 155 | $(srcdir)/./stamp-h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4) $(top_srcdir)/acconfig.h |
| 156 | @rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT |
| 157 | @echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 158 | cd $(top_srcdir) && $(AUTOHEADER) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 159 | @mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 160 | |
| 161 | distclean-hdr: |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 162 | -rm -f config.h |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 163 | uninstall-info-am: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 164 | |
| 165 | # This directory's subdirectories are mostly independent; you can cd |
| 166 | # into them and run `make' without going through this Makefile. |
| 167 | # To change the values of `make' variables: instead of editing Makefiles, |
| 168 | # (1) if the variable is set in `config.status', edit `config.status' |
| 169 | # (which will cause the Makefiles to be regenerated when you run `make'); |
| 170 | # (2) otherwise, pass the desired values on the `make' command line. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 171 | $(RECURSIVE_TARGETS): |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 172 | @set fnord $(MAKEFLAGS); amf=$$2; \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 173 | dot_seen=no; \ |
| 174 | target=`echo $@ | sed s/-recursive//`; \ |
| 175 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
| 176 | echo "Making $$target in $$subdir"; \ |
| 177 | if test "$$subdir" = "."; then \ |
| 178 | dot_seen=yes; \ |
| 179 | local_target="$$target-am"; \ |
| 180 | else \ |
| 181 | local_target="$$target"; \ |
| 182 | fi; \ |
| 183 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
| 184 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ |
| 185 | done; \ |
| 186 | if test "$$dot_seen" = "no"; then \ |
| 187 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
| 188 | fi; test -z "$$fail" |
| 189 | |
| 190 | mostlyclean-recursive clean-recursive distclean-recursive \ |
| 191 | maintainer-clean-recursive: |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 192 | @set fnord $(MAKEFLAGS); amf=$$2; \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 193 | dot_seen=no; \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 194 | case "$@" in \ |
| 195 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |
| 196 | *) list='$(SUBDIRS)' ;; \ |
| 197 | esac; \ |
| 198 | rev=''; for subdir in $$list; do \ |
| 199 | if test "$$subdir" = "."; then :; else \ |
| 200 | rev="$$subdir $$rev"; \ |
| 201 | fi; \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 202 | done; \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 203 | rev="$$rev ."; \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 204 | target=`echo $@ | sed s/-recursive//`; \ |
| 205 | for subdir in $$rev; do \ |
| 206 | echo "Making $$target in $$subdir"; \ |
| 207 | if test "$$subdir" = "."; then \ |
| 208 | local_target="$$target-am"; \ |
| 209 | else \ |
| 210 | local_target="$$target"; \ |
| 211 | fi; \ |
| 212 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
| 213 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ |
| 214 | done && test -z "$$fail" |
| 215 | tags-recursive: |
| 216 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
| 217 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
| 218 | done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 219 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 220 | tags: TAGS |
| 221 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 222 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
| 223 | list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \ |
| 224 | unique=`for i in $$list; do \ |
| 225 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
| 226 | done | \ |
| 227 | $(AWK) ' { files[$$0] = 1; } \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 228 | END { for (i in files) print i; }'`; \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 229 | mkid -fID $$unique $(LISP) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 230 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 231 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
| 232 | $(TAGS_FILES) $(LISP) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 233 | tags=; \ |
| 234 | here=`pwd`; \ |
| 235 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 236 | if test "$$subdir" = .; then :; else \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 237 | test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 238 | fi; \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 239 | done; \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 240 | list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \ |
| 241 | unique=`for i in $$list; do \ |
| 242 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
| 243 | done | \ |
| 244 | $(AWK) ' { files[$$0] = 1; } \ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 245 | END { for (i in files) print i; }'`; \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 246 | test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 247 | || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 248 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 249 | GTAGS: |
| 250 | here=`CDPATH=: && cd $(top_builddir) && pwd` \ |
| 251 | && cd $(top_srcdir) \ |
| 252 | && gtags -i $(GTAGS_ARGS) $$here |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 253 | |
| 254 | distclean-tags: |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 255 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 256 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 257 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 258 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 259 | top_distdir = . |
| 260 | # Avoid unsightly `./'. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 261 | distdir = $(PACKAGE)-$(VERSION) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 262 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 263 | GZIP_ENV = --best |
| 264 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 265 | distdir: $(DISTFILES) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 266 | -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 267 | mkdir $(distdir) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 268 | $(mkinstalldirs) $(distdir)/vtysh |
| 269 | @for file in $(DISTFILES); do \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 270 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ |
| 271 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ |
| 272 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ |
| 273 | $(mkinstalldirs) "$(distdir)/$$dir"; \ |
| 274 | fi; \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 275 | if test -d $$d/$$file; then \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 276 | cp -pR $$d/$$file $(distdir) \ |
| 277 | || exit 1; \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 278 | else \ |
| 279 | test -f $(distdir)/$$file \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 280 | || cp -p $$d/$$file $(distdir)/$$file \ |
| 281 | || exit 1; \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 282 | fi; \ |
| 283 | done |
| 284 | for subdir in $(SUBDIRS); do \ |
| 285 | if test "$$subdir" = .; then :; else \ |
| 286 | test -d $(distdir)/$$subdir \ |
| 287 | || mkdir $(distdir)/$$subdir \ |
| 288 | || exit 1; \ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 289 | (cd $$subdir && \ |
| 290 | $(MAKE) $(AM_MAKEFLAGS) \ |
| 291 | top_distdir="$(top_distdir)" \ |
| 292 | distdir=../$(distdir)/$$subdir \ |
| 293 | distdir) \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 294 | || exit 1; \ |
| 295 | fi; \ |
| 296 | done |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 297 | $(MAKE) $(AM_MAKEFLAGS) \ |
| 298 | top_distdir="${top_distdir}" distdir="$(distdir)" \ |
| 299 | dist-hook |
| 300 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ |
| 301 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
| 302 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
| 303 | ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ |
| 304 | || chmod -R a+r $(distdir) |
| 305 | dist: distdir |
| 306 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
| 307 | -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) |
| 308 | |
| 309 | # This target untars the dist file and tries a VPATH configuration. Then |
| 310 | # it guarantees that the distribution is self-contained by making another |
| 311 | # tarfile. |
| 312 | distcheck: dist |
| 313 | -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) |
| 314 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - |
| 315 | chmod -R a-w $(distdir); chmod a+w $(distdir) |
| 316 | mkdir $(distdir)/=build |
| 317 | mkdir $(distdir)/=inst |
| 318 | chmod a-w $(distdir) |
| 319 | dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \ |
| 320 | && cd $(distdir)/=build \ |
| 321 | && ../configure --srcdir=.. --prefix=$$dc_install_base \ |
| 322 | && $(MAKE) $(AM_MAKEFLAGS) \ |
| 323 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
| 324 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
| 325 | && $(MAKE) $(AM_MAKEFLAGS) install \ |
| 326 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
| 327 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ |
| 328 | && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ |
| 329 | || (echo "Error: files left after uninstall" 1>&2; \ |
| 330 | exit 1) ) \ |
| 331 | && $(MAKE) $(AM_MAKEFLAGS) dist \ |
| 332 | && $(MAKE) $(AM_MAKEFLAGS) distclean \ |
| 333 | && rm -f $(distdir).tar.gz \ |
| 334 | && (test `find . -type f -print | wc -l` -eq 0 \ |
| 335 | || (echo "Error: files left after distclean" 1>&2; \ |
| 336 | exit 1) ) |
| 337 | -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) |
| 338 | @echo "$(distdir).tar.gz is ready for distribution" | \ |
| 339 | sed 'h;s/./=/g;p;x;p;x' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 340 | check-am: all-am |
| 341 | check: check-recursive |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 342 | all-am: Makefile config.h |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 343 | installdirs: installdirs-recursive |
| 344 | installdirs-am: |
| 345 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 346 | install: install-recursive |
| 347 | install-exec: install-exec-recursive |
| 348 | install-data: install-data-recursive |
| 349 | uninstall: uninstall-recursive |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 350 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 351 | install-am: all-am |
| 352 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
| 353 | |
| 354 | installcheck: installcheck-recursive |
| 355 | install-strip: |
| 356 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
| 357 | `test -z '$(STRIP)' || \ |
| 358 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 359 | mostlyclean-generic: |
| 360 | |
| 361 | clean-generic: |
| 362 | |
| 363 | distclean-generic: |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 364 | -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 365 | |
| 366 | maintainer-clean-generic: |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 367 | @echo "This command is intended for maintainers to use" |
| 368 | @echo "it deletes files that may require special tools to rebuild." |
| 369 | clean: clean-recursive |
| 370 | |
| 371 | clean-am: clean-generic mostlyclean-am |
| 372 | |
| 373 | dist-all: distdir |
| 374 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
| 375 | -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) |
| 376 | distclean: distclean-recursive |
| 377 | -rm -f config.status config.cache config.log |
| 378 | distclean-am: clean-am distclean-generic distclean-hdr distclean-tags |
| 379 | |
| 380 | dvi: dvi-recursive |
| 381 | |
| 382 | dvi-am: |
| 383 | |
| 384 | info: info-recursive |
| 385 | |
| 386 | info-am: |
| 387 | |
| 388 | install-data-am: |
| 389 | |
| 390 | install-exec-am: |
| 391 | |
| 392 | install-info: install-info-recursive |
| 393 | |
| 394 | install-man: |
| 395 | |
| 396 | installcheck-am: |
| 397 | |
| 398 | maintainer-clean: maintainer-clean-recursive |
| 399 | |
| 400 | maintainer-clean-am: distclean-am maintainer-clean-generic |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 401 | |
| 402 | mostlyclean: mostlyclean-recursive |
| 403 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 404 | mostlyclean-am: mostlyclean-generic |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 405 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 406 | uninstall-am: uninstall-info-am |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 407 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 408 | uninstall-info: uninstall-info-recursive |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 409 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame^] | 410 | .PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ |
| 411 | clean-generic clean-recursive dist dist-all distcheck distclean \ |
| 412 | distclean-generic distclean-hdr distclean-recursive \ |
| 413 | distclean-tags distdir dvi dvi-am dvi-recursive info info-am \ |
| 414 | info-recursive install install-am install-data install-data-am \ |
| 415 | install-data-recursive install-exec install-exec-am \ |
| 416 | install-exec-recursive install-info install-info-am \ |
| 417 | install-info-recursive install-man install-recursive \ |
| 418 | install-strip installcheck installcheck-am installdirs \ |
| 419 | installdirs-am installdirs-recursive maintainer-clean \ |
| 420 | maintainer-clean-generic maintainer-clean-recursive mostlyclean \ |
| 421 | mostlyclean-generic mostlyclean-recursive tags tags-recursive \ |
| 422 | uninstall uninstall-am uninstall-info-am \ |
| 423 | uninstall-info-recursive uninstall-recursive |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 424 | |
| 425 | |
| 426 | dist-hook: |
| 427 | mkdir $(distdir)/tools |
| 428 | cp -p $(srcdir)/tools/*.pl $(distdir)/tools |
| 429 | cp -p $(srcdir)/tools/*.el $(distdir)/tools |
| 430 | cp -p $(srcdir)/tools/*.cgi $(distdir)/tools |
| 431 | mkdir $(distdir)/init |
| 432 | mkdir $(distdir)/init/redhat |
| 433 | cp -p $(srcdir)/init/redhat/*.init $(distdir)/init/redhat |
| 434 | cp -p $(srcdir)/init/redhat/zebra.* $(distdir)/init/redhat |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 435 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
| 436 | # Otherwise a system limit (for SysV at least) may be exceeded. |
| 437 | .NOEXPORT: |