make: check if git is available before calculate version
[pyfrprog.git] / pkernel / Makefile
index 66e4598ce5e3f02123a9a0cc6b92c57872cbbdbc..37e74d58a2dd9c0200a2b6446801001555267e6a 100644 (file)
@@ -55,7 +55,7 @@ LD = $(PREFIX)flnk911s
 LIBR = $(PREFIX)flibs
 CONV = $(PREFIX)f2ms
 
-ifneq ($(shell which dos2unix),)
+ifeq ($(shell which fromdos > /dev/null 2> /dev/null; echo $$?),1)
 D2U = dos2unix
 else
 D2U = fromdos