aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.nmake
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-09-30 09:45:51 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-09-30 09:45:51 +0000
commite4d5b387d9376dbca2ac620ae3c7833e94c133d8 (patch)
treef0b5a38bc8af08bcb1426895a7988eaf14fa500a /plugins/Makefile.nmake
parentbedacc2bc2e3f6e4e00bcbd489bc5d87b931c552 (diff)
"Pluggable custom makefile"
A custom plugin (not yet to be released to the public) can be added to Makefile.nmake easily. But this has a drawback: The modified Makefile.nmake appears as a modified file in the commit list and in generated patches (this annoyed me for years). To solve this I've added a plugin like mechanism which calls a Custom.nmake file for each target (if the file is existing). I've also added a Custom.nmake.example for a quick start. I don't know how to do this for the Makefile.am, so I leave this as an exercise for the interested reader ;-) svn path=/trunk/; revision=19377
Diffstat (limited to 'plugins/Makefile.nmake')
-rw-r--r--plugins/Makefile.nmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Makefile.nmake b/plugins/Makefile.nmake
index 44408405db..d18c5a51e9 100644
--- a/plugins/Makefile.nmake
+++ b/plugins/Makefile.nmake
@@ -12,6 +12,7 @@ all: \
artnet \
asn1 \
ciscosm \
+ custom \
docsis \
enttec \
giop \
@@ -59,6 +60,9 @@ ciscosm::
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
cd ..
+custom::
+ if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake
+
docsis::
cd docsis
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
@@ -221,6 +225,7 @@ clean:
cd ../v5ua
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
cd ..
+ if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake clean
distclean: clean
cd acn
@@ -276,6 +281,7 @@ distclean: clean
cd ../v5ua
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
cd ..
+ if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake distclean
maintainer-clean: distclean
cd acn
@@ -329,6 +335,7 @@ maintainer-clean: distclean
cd ../v5ua
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
cd ..
+ if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake maintainer-clean
################################################################################
# copy all plugins to /plugins/$(VERSION), so Wireshark will load them, when
@@ -367,6 +374,7 @@ install-plugins:
xcopy sbus\*.dll $(VERSION) /d
xcopy stats_tree\*.dll $(VERSION) /d
xcopy v5ua\*.dll $(VERSION) /d
+ if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
!ENDIF
clean-deps: