# config/post.in check-windows:: .d: $(SRCS) if test "$(srcdir)" = "." ; then \ echo 1>&2 error: cannot build dependencies with srcdir=. ; \ echo 1>&2 "(can't distinguish generated files from source files)" ; \ exit 1 ; \ fi if test -n "$(SRCS)" ; then \ $(CC) -M $(ALL_CFLAGS) $(SRCS) > .dtmp || exit 1 ; \ mv -f .dtmp .d ; \ else \ touch .d ; \ fi # Generate a script for dropping in the appropriate make variables, using # directory-specific parameters. General substitutions independent of local # make variables happen in depfix.sed. depfix2.sed: Makefile $(SRCTOP)/util/depgen.sed echo '# automatically generated, do not edit' > depfix2.tmp echo 's;///*;/;g' >> depfix2.tmp echo 's; \./; ;g' >> depfix2.tmp echo 's; $(SRCTOP)/; $$(SRCTOP)/;g' >> depfix2.tmp echo 's; $(srcdir)/; $$(srcdir)/;g' >> depfix2.tmp echo 's; $$(srcdir)/\.\./; $(srcdir)/../;g' >> depfix2.tmp echo '$(SRCTOP)' '$(myfulldir)' | sed -f $(SRCTOP)/util/depgen.sed >> depfix2.tmp echo 's; $(BUILDTOP)/; $$(BUILDTOP)/;g' >> depfix2.tmp mv -f depfix2.tmp depfix2.sed DEPLIBOBJNAMEFIX = sed -e 's;^\$$(OUTPRE)\([a-zA-Z0-9_\-]*\)\.\$$(OBJEXT):;\1.so \1.po &;' .depend: .d depfix2.sed $(SRCTOP)/util/depfix.sed sed -f depfix2.sed < .d | sed -f $(SRCTOP)/util/depfix.sed | \ (if test "x$(STLIBOBJS)" != "x"; then $(DEPLIBOBJNAMEFIX) ; else cat; fi ) \ > .depend depend-postrecurse:: .depend if test -n "$(SRCS)" ; then \ sed -e '/^# +++ Dependency line eater +++/,$$d' \ < $(srcdir)/Makefile.in | cat - .depend \ > $(srcdir)/Makefile.in.new; \ $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \ $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \ else :; fi depend:: depend-prerecurse depend-recurse depend-postrecurse depend-prerecurse:: clean:: clean-$(WHAT) clean-unix:: if test -n "$(OBJS)" ; then $(RM) $(OBJS); else :; fi $(RM) .depend clean-windows:: $(RM) *.$(OBJEXT) $(RM) msvc.pdb *.err distclean:: distclean-$(WHAT) distclean-prerecurse:: $(MAKE) NORECURSE=true clean distclean-postrecurse:: $(RM) config.log config.cache config.status Makefile Makefiles-prerecurse:: Makefile Makefile: $(srcdir)/Makefile.in $(thisconfigdir)/config.status \ $(SRCTOP)/config/pre.in $(SRCTOP)/config/post.in cd $(thisconfigdir) && $(SHELL) config.status $(thisconfigdir)/config.status: $(srcdir)/$(thisconfigdir)/configure cd $(thisconfigdir) && $(SHELL) config.status --recheck $(srcdir)/$(thisconfigdir)/configure: $(srcdir)/$(thisconfigdir)/configure.in \ $(SRCTOP)/aclocal.m4 cd $(srcdir)/$(thisconfigdir) && \ $(AUTOCONF) --localdir=$(CONFIG_RELTOPDIR) $(AUTOCONFFLAGS) RECURSE_TARGETS=all-recurse clean-recurse distclean-recurse install-recurse \ check-recurse depend-recurse Makefiles-recurse $(RECURSE_TARGETS): @case "`echo 'x$(MFLAGS)'|sed -e 's/^x//' -e 's/ --.*$$//'`" \ in *[ik]*) e="status=1" ;; *) e="exit 1";; esac; \ if test -z "$(MY_SUBDIRS)" ; then \ do_subdirs="$(SUBDIRS)" ; \ else \ do_subdirs="$(MY_SUBDIRS)" ; \ fi; \ status=0; \ if test -n "$$do_subdirs" && test -z "$(NORECURSE)"; then \ for i in $$do_subdirs ; do \ if test -d $$i && test -r $$i/Makefile ; then \ case $$i in .);; *) \ target=`echo $@|sed s/-recurse//`; \ echo "making $$target in $(CURRENT_DIR)$$i..."; \ if (cd $$i ; $(MAKE) \ CURRENT_DIR=$(CURRENT_DIR)$$i/ $$target) then :; \ else eval $$e; fi; \ ;; \ esac; \ else \ echo "Skipping missing directory $(CURRENT_DIR)$$i" ; \ fi; \ done; \ else :; \ fi;\ exit $$status