From 9bf84c30a3d0e3e1d4b9136aee9c0a4b8ae769d2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 18 Nov 2008 09:30:32 +0100 Subject: [PATCH] Use mk_version.tcl to generate yaz-version.h --- win/makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/win/makefile b/win/makefile index bced029..3137e98 100644 --- a/win/makefile +++ b/win/makefile @@ -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) -- 1.7.10.4