Use test -f rather than test -e
[ghc-hetmet.git] / driver / Makefile
index 3fcb4be..7e87b89 100644 (file)
@@ -15,7 +15,7 @@ INPLACE_FILE     = $(INPLACE_DATA_DIR)/inplace
 
 boot all ::
        $(MKDIRHIER) $(INPLACE_DATA_DIR)
-       test -e $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF)
+       test -f $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF)
        touch $(INPLACE_FILE)
 
 INSTALL_DATAS += ghc-usage.txt ghci-usage.txt