convert .txt in Win32 distribution files to CRLF eol

This commit is contained in:
Thomas Bernard
2018-12-02 11:02:37 +01:00
parent 3b90e2199e
commit 4391603f37
4 changed files with 16 additions and 2 deletions

View File

@@ -16,7 +16,13 @@ INSTALLER = grafx2-$(API)-$(VERSION).win32.exe
all: $(INSTALLER)
$(INSTALLER): WinInstaller.nsi $(SOURCES) $(VERSIONTAG)
ifdef WIN32CROSS
for f in ../doc/*.txt; do unix2dos $$f ; done
endif
$(SED) -e 's/VERSION .*/VERSION $(VERSION)/' -e 's/API .*/API $(API)/' $< | $(MAKENSIS) -
ifdef WIN32CROSS
for f in ../doc/*.txt; do dos2unix $$f ; done
endif
$(SOURCES): $(wildcard ../src/*.c) $(wildcard ../src/*.h)
cd ../src && WIN32CROSS=1 $(MAKE) $(SOURCES)