Browse Source

* use unitdir only if existing and non empty

pierre 26 years ago
parent
commit
47a2e0de04
1 changed files with 8 additions and 1 deletions
  1. 8 1
      base/makefile.fpc

+ 8 - 1
base/makefile.fpc

@@ -341,6 +341,10 @@ UNITDIR=$(FPCDIR)/units/$(OS_TARGET)
 endif
 endif
 endif
 endif
 
 
+ifeq ($(strip $(wildcard $(UNITDIR)/*)),)
+UNITDIR=
+endif
+
 # set the prefix directory where to install everything
 # set the prefix directory where to install everything
 ifndef PREFIXINSTALLDIR
 ifndef PREFIXINSTALLDIR
 ifdef inlinux
 ifdef inlinux
@@ -1048,7 +1052,10 @@ endif
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.45  1999-08-19 06:50:25  michael
+# Revision 1.46  1999-08-30 12:07:43  pierre
+#  * use unitdir only if existing and non empty
+#
+# Revision 1.45  1999/08/19 06:50:25  michael
 # + Changes from Sebastian Gunther
 # + Changes from Sebastian Gunther
 #
 #
 # Revision 1.44  1999/08/13 15:35:37  peter
 # Revision 1.44  1999/08/13 15:35:37  peter