use sed to create a temporary doxygen config file,

to get the version number from ..\config.nmake

svn path=/trunk/; revision=10865
This commit is contained in:
Ulf Lamping 2004-05-13 10:10:28 +00:00
parent 11451cd89f
commit b0dd8e1e49
2 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,7 @@
## Makefile for building ethereal.exe with Microsoft C and nmake
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
# $Id: Makefile.nmake,v 1.42 2004/05/11 00:53:12 ulfl Exp $
# $Id: Makefile.nmake,v 1.43 2004/05/13 10:10:28 ulfl Exp $
include ..\config.nmake
include <win32.mak>
@ -84,7 +84,7 @@ ethereal.lib : ..\config.h $(OBJECTS)
cd epan
clean:
rm -f $(OBJECTS) ethereal.lib libethereal.dll libethereal.lib libethereal.exp $(PDB_FILE)
rm -f $(OBJECTS) ethereal.lib libethereal.dll libethereal.lib libethereal.exp $(PDB_FILE) doxygen.tmp
cd ftypes
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
cd ../dfilter
@ -109,11 +109,17 @@ dfilter:: ..\config.h
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
cd ..
doxygen::
doxygen.tmp: ..\config.nmake doxygen.cfg
sed -e s/@VERSION@/$(VERSION)/ \
< doxygen.cfg > $@
doxygen-run:
!IFDEF DOXYGEN
$(DOXYGEN) doxygen.cfg
$(DOXYGEN) doxygen.tmp
!ENDIF
doxygen: doxygen.tmp doxygen-run
#
# Build "register.c", which contains a function "register_all_protocols()"
# that calls the register routines for all protocols.

View File

@ -23,7 +23,7 @@ PROJECT_NAME = Ethereal-Epan
# This could be handy for archiving the generated documentation or
# if some version control system is used.
PROJECT_NUMBER = 0.10.4
PROJECT_NUMBER = @VERSION@
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.