]> sjero.net Git - wget/blobdiff - Makefile.in
[svn] Renamed configure.bat to configure.bat.in.
[wget] / Makefile.in
index 3756681a1ab63305eb2402291d77c544097458a7..6ebdd35fb93a717eccedd34a75a37d4993082eb3 100644 (file)
@@ -75,7 +75,7 @@ infodir='$(infodir)' mandir='$(mandir)' manext='$(manext)'
 SUBDIRS = src doc po util windows
 
 # default target
-all: libtool src/config.h Makefile $(SUBDIRS)
+all: libtool src/config.h Makefile configure.bat $(SUBDIRS)
 
 check: all
 
@@ -102,6 +102,10 @@ install.mo:
 libtool: $(LIBTOOL_DEPS)
        $(SHELL) ./config.status --recheck
 
+# Create configure.bat from configure.bat.in by DOS-ifying the lines.
+configure.bat: configure.bat.in
+       awk '{ print $$0 ($$0 ~ /\r$$/ ? "" : "\r") }' $@.in > $@
+
 # create tag files for Emacs
 TAGS:
        cd src && $(MAKE) $@