Use test -f rather than test -e, for portability (Solaris)
[ghc-hetmet.git] / mk / cabal-flags.mk
index 2e74357..7a137ce 100644 (file)
@@ -38,7 +38,7 @@ endif
 COMMON_CONFIGURE_FLAGS += $(FLAGGED_CONFIGURE_ARGS) \
                           --configure-option=--with-cc=$(CC)
 
-COMMON_CONFIGURE_FLAGS += $(shell [ -e $(HSC2HS_INPLACE) ] && \
+COMMON_CONFIGURE_FLAGS += $(shell [ -f $(HSC2HS_INPLACE) ] && \
                                   echo --with-hsc2hs=$(HSC2HS_INPLACE) )
 
 ifeq "$(Windows)" "YES"