Use mk_version.tcl to generate yaz-version.h
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 18 Nov 2008 08:30:32 +0000 (09:30 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 18 Nov 2008 08:30:32 +0000 (09:30 +0100)
win/makefile

index bced029..3137e98 100644 (file)
@@ -60,8 +60,6 @@ nsis:
 nsishelp:
        $(NSIS)
 
-generate: generated_files
-
 # Directories
 # The current directory is supposed to be something like
 # ..../yaz/win, everything is relative to that
@@ -656,12 +654,13 @@ GENERATED_H_FILES= \
    $(ILL_CORE_H_FILES) \
    $(ITEM_REQ_H_FILES)
 
-generated_files: \
+generate: \
        $(GENERATED_H_FILES) \
        $(GENERATED_C_FILES) \
        $(SRCDIR)\diagsrw.c \
        $(SRCDIR)\diagbib1.c \
-       $(SRCDIR)\diagsru_update.c 
+       $(SRCDIR)\diagsru_update.c \
+       $(INCLDIR)\yaz\yaz-version.h 
 
 # Compiling 
 
@@ -771,6 +770,11 @@ $(SRCDIR)\diagsru_update.c: $(SRCDIR)\sru_update.csv
        @cd $(SRCDIR)
        $(TCL) csvtosru_update.tcl $(SRCDIR)
 
+$(INCLDIR)\yaz\yaz-version.h:
+       @cd $(SRCDIR)
+       $(TCL) mk_version.tcl $(ROOTDIR)/configure.ac $(INCLDIR)\yaz\yaz-version.h
+
+
 !endif
 
 !if $(HAVE_BISON)