Browse Source

first check for libgdb before building

peter 20 years ago
parent
commit
f40c70caec
2 changed files with 5 additions and 2 deletions
  1. 2 1
      Makefile
  2. 3 1
      Makefile.fpc

+ 2 - 1
Makefile

@@ -2659,7 +2659,7 @@ FPCISSSUBST=-d BUILDDIR=$(subst /,$(PATHSEP),$(INNODIR))
 ifdef NODOCS
 FPCISSSUBST+=-d DisableDocs=;
 endif
-innobuild: build
+innocheck:
 ifndef NODOCS
 ifeq ($(wildcard docs-pdf.zip),)
 	@$(ECHO) "No documentation available. Please copy the file docs-pdf.zip to this directory."
@@ -2670,6 +2670,7 @@ ifeq ($(wildcard libgdb/win32/libgdb.a),)
 	@$(ECHO) "Libgdb not available. Please get and unzip libgdb-<version>.i386-win32.zip in this directory."
 	@exit 1
 endif
+innobuild: innocheck build
 	$(DELTREE) $(INNODIR)
 	$(MKDIR) $(INNODIR)
 ifndef NODOCS

+ 3 - 1
Makefile.fpc

@@ -678,7 +678,7 @@ ifdef NODOCS
 FPCISSSUBST+=-d DisableDocs=;
 endif
 
-innobuild: build
+innocheck:
 ifndef NODOCS
 # Check for docs-pdf.zip
 ifeq ($(wildcard docs-pdf.zip),)
@@ -691,6 +691,8 @@ ifeq ($(wildcard libgdb/win32/libgdb.a),)
 	@$(ECHO) "Libgdb not available. Please get and unzip libgdb-<version>.i386-win32.zip in this directory."
 	@exit 1
 endif
+
+innobuild: innocheck build
         $(DELTREE) $(INNODIR)
         $(MKDIR) $(INNODIR)
 ifndef NODOCS