]> granicus.if.org Git - postgresql/commitdiff
Heres a patch which will create the sql_help.h file on Win32 if it
authorBruce Momjian <bruce@momjian.us>
Sat, 23 Nov 2002 04:06:32 +0000 (04:06 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 23 Nov 2002 04:06:32 +0000 (04:06 +0000)
doesn't already exist using an installed copy of perl. I've tested it
using perl v5.6.1 from ActiveState and all appears to work.

Al Sutton

src/bin/psql/win32.mak

index 119e5cce9d6c082201d2e25db9de4e3bf6ba7bd2..82ca69218c268d37c44cb73fd064e695d431e1fe 100644 (file)
@@ -7,14 +7,16 @@ NULL=nul
 !ENDIF 
 
 CPP=cl.exe
+PERL=perl.exe
 
 OUTDIR=.\Release
 INTDIR=.\Release
+REFDOCDIR= ../../../doc/src/sgml/ref
 # Begin Custom Macros
 OutDir=.\Release
 # End Custom Macros
 
-ALL : "$(OUTDIR)\psql.exe"
+ALL : sql_help.h "$(OUTDIR)\psql.exe"
 
 CLEAN :
        -@erase "$(INTDIR)\command.obj"
@@ -91,3 +93,7 @@ LINK32_OBJS= \
    $(CPP) @<<
    $(CPP_PROJ) $< 
 <<
+
+sql_help.h: create_help.pl
+        $(PERL) create_help.pl $(REFDOCDIR) $@
+