2007-12-17 Tim-Philipp Müller <tim at centricular dot net>
+ * win32.mak: (win32), (win32defs), (win32crlf):
+ Make check for CR LF in Visual C++ 6.0 project files
+ work, based on patch by David Schleef (#496722, #393626).
+
+2007-12-17 Tim-Philipp Müller <tim at centricular dot net>
+
* Makefile.am:
Don't forget to dist the new win32.mak.
# various tests to make sure we dist the win32 stuff (for MSVC builds) right
+# the MANIFEST contains all win32 related files that should be disted
win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
-# wildcard is apparently not portable to other makes
+# wildcard is apparently not portable to other makes, hence the use of find
+# these are library .def files with the symbols to export
win32defs = $(shell find $(top_srcdir)/win32/common -name '*.def')
+# wildcard is apparently not portable to other makes, hence the use of find
+# these are files that need to be disted with CRLF line endings:
+win32crlf = $(shell find $(top_srcdir)/win32 -name '*.dsw' -o -name '*.dsp')
+
win32-debug:
@echo; \
echo win32 = $(win32); \
echo; \
echo win32defs = $(win32defs); \
+ echo; \
+ echo win32crlf = $(win32crlf); \
echo
-# FIXME: this doesn't seem to work right yet
win32-check-crlf:
+ @echo Checking win32 files for CR LF line endings ...; \
fail=0 ; \
- for each in $(win32); do \
+ for each in $(win32crlf) ; do \
if ! (file $$each | grep CRLF >/dev/null) ; then \
echo $$each must be fixed to have CRLF line endings ; \
fail=1; \
done
-dist-hook: check-exports
+dist-hook: check-exports win32-check-crlf