As suggested by Joerg a while back, get rid of FAQ in the build directory.
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 6 Jan 2009 21:47:19 +0000 (21:47 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 6 Jan 2009 21:47:19 +0000 (21:47 +0000)
Copy help/faq.txt to FAQ in the NSIS and zip packages.

Add "help" to the dependency list for "all". Fix a couple of minor bugs
in the top-level Makfile.nmake.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27173 f5534014-38df-0310-8fa8-9805f1628bb7

Makefile.nmake
packaging/nsis/Makefile.nmake
packaging/nsis/wireshark.nsi

index 6d750fc18739f0923f8604f76720f11df63653a2..026faa3553947767cad852c3f6d6382351c9ab20 100644 (file)
@@ -171,7 +171,7 @@ RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
 
 LIBS_CHECK=_libs_check_
 
-all: $(LIBS_CHECK) config.h tools image codecs $(C_ARES_DLL) $(ADNS_DLL) $(ZLIB_DLL) wsutil wiretap epan $(EXECUTABLES) $(RESOURCES) doc install-all
+all: $(LIBS_CHECK) config.h tools image codecs $(C_ARES_DLL) $(ADNS_DLL) $(ZLIB_DLL) wsutil wiretap epan $(EXECUTABLES) $(RESOURCES) doc help install-all
 
 packaging: all
        cd packaging
@@ -215,7 +215,7 @@ wireshark.bsc: *.sbr epan\*.sbr epan\dfilter\*.sbr epan\ftypes\*.sbr epan\wslua\
        $(BSCMAKE) @<<
                /o $@ $?
 <<
-       xcopy $@ wireshark-gtk2\ /d
+       xcopy $@ $(INSTALL_DIR)\ /d
 
 $(RESOURCES): image
 
@@ -609,7 +609,7 @@ codecs::
         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
         cd ..
 
-gtk:: help FAQ config.h svnversion.h AUTHORS-SHORT doxygen
+gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
        cd gtk
        $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake libui.lib
        cd ..
@@ -644,14 +644,6 @@ doxygen-run:
 !ENDIF
 
 doxygen: doxygen.cfg doxygen-run
-
-help\faq.txt:
-       cd help
-       $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake faq.txt
-       cd ..
-
-FAQ: help\faq.txt
-       cp --preserve $? $@
        
 
 ################################################################################
@@ -919,10 +911,10 @@ debug-dumpcap: dumpcap.exe install-generated-files
 # install generated files (exe, "our" libs, ...)
 install-generated-files:
        set copycmd=/y
+       if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
 !IF "$(MSVC_VARIANT)" == "MSVC2008"
        xcopy "$(MSVCR_DLL)" $(INSTALL_DIR)\*.*
 !ENDIF
-       if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
 !IFDEF ENABLE_LIBWIRESHARK
        xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
 !ENDIF
@@ -952,7 +944,6 @@ install-generated-files:
        xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
        xcopy ".\manuf" $(INSTALL_DIR) /d
        xcopy ".\services" $(INSTALL_DIR) /d
-       xcopy ".\FAQ" $(INSTALL_DIR) /d
        xcopy ".\README" $(INSTALL_DIR) /d
        xcopy ".\README.win32" $(INSTALL_DIR) /d
        xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
@@ -969,6 +960,9 @@ install-generated-files:
        xcopy doc\*.html $(INSTALL_DIR) /d
        if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
        xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
+# Oh for crying out loud. Xcopy has a "the destination is a directory"
+# flag, but no corresponding "the destination is a file" flag.
+       echo f | xcopy ".\help\faq.txt" $(INSTALL_DIR)\FAQ /d
        if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
        xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
        if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
index 6755c8142ad32adffb3831e2501b1f305d209aa8..1b07d937a4ff7cd22fbfd474a7223a186d086317 100644 (file)
@@ -30,7 +30,6 @@ DOC=../../doc/ws.css                  \
        ../../doc/tshark.html           \
        ../../doc/wireshark-filter.html \
        ../../doc/wireshark.html        \
-       ../../FAQ                       \
        ../../README                    \
        ../../README.win32
 DOC_dos=NEWS.txt
index 2c8b8024969fec113f3983fb351ba1843e64360c..75fcc14b4c8b9519843d450f1af08cc4d8ecacc5 100644 (file)
@@ -385,7 +385,7 @@ File "..\..\epan\wslua\dtd_gen.lua"
 !ifdef SMI_DIR
 File "${SMI_DIR}\lib\smi.dll"
 !endif
-File "..\..\FAQ"
+File /oname=FAQ "..\..\help\faq.txt"
 File "..\..\README"
 File "..\..\README.win32"
 File "..\..\AUTHORS-SHORT"