forked from osmocom/wireshark
6616a3770c
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and GENERATED_FILES macros in Makefile.common files, along the lines of what wiretap/Makefile.common has. Clean up "*~" files with "make clean" rather than only "make distclean" in some additional places. Add "maintainer-clean" rules to the Makefile.nmake files, paralelling the ones in the automake-generated Makefile.in files, using the GENERATED_FILES macros from Makefile.common files. In some cases, move the cleanup of files from "make distclean" to "make maintainer-clean", and in other cases, put in a comment indicating why we're not doing that (because some files that are distributed in the source tarballs, namely Flex output, were built with a UN*X Flex and won't compile on Windows, so we get rid of them with "make distclean" so you can clean up stuff that *has* to be re-generated for Windows). Clean up some *CLEANFILES definitions - get rid of ones that no longer apply as files were moved or that add to the definition a name that's already there. svn path=/trunk/; revision=13402
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
include ..\config.nmake
|
|
|
|
ALL_RC=ethereal.rc libethereal.rc tethereal.rc capinfos.rc editcap.rc text2pcap.rc mergecap.rc wiretap.rc
|
|
all : $(ALL_RC)
|
|
|
|
ethereal.rc : ethereal.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< ethereal.rc.in > $@
|
|
|
|
libethereal.rc: libethereal.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< libethereal.rc.in > $@
|
|
|
|
tethereal.rc : tethereal.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< tethereal.rc.in > $@
|
|
|
|
capinfos.rc : capinfos.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< capinfos.rc.in > $@
|
|
|
|
editcap.rc : editcap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< editcap.rc.in > $@
|
|
|
|
mergecap.rc : mergecap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< mergecap.rc.in > $@
|
|
|
|
text2pcap.rc : text2pcap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< text2pcap.rc.in > $@
|
|
|
|
wiretap.rc : wiretap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(WTAP_VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_WTAP_VERSION)/ \
|
|
< wiretap.rc.in > $@
|
|
|
|
clean :
|
|
rm -f $(ALL_RC)
|
|
|
|
distclean: clean
|
|
|
|
maintainer-clean: distclean
|