rules to autogenerate swigwarn.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
55681e10b7
commit
8abe53381d
1 changed files with 15 additions and 10 deletions
|
|
@ -16,12 +16,14 @@ BIN_DIR = @bindir@
|
||||||
TARGET = swig@release_suffix@@EXEEXT@
|
TARGET = swig@release_suffix@@EXEEXT@
|
||||||
SOURCE = Source
|
SOURCE = Source
|
||||||
|
|
||||||
swig: source
|
swig: libfiles source
|
||||||
|
|
||||||
source:
|
source:
|
||||||
@cd $(SOURCE) && $(MAKE)
|
@cd $(SOURCE) && $(MAKE)
|
||||||
|
|
||||||
.PHONY: source
|
libfiles: Lib/swigwarn.swg
|
||||||
|
|
||||||
|
.PHONY: source libfiles
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# All the languages SWIG speaks (when it wants to)
|
# All the languages SWIG speaks (when it wants to)
|
||||||
|
|
@ -253,7 +255,7 @@ broken-%-test-suite:
|
||||||
# CLEAN
|
# CLEAN
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
clean: clean-objects clean-examples clean-gifplot clean-test-suite
|
clean: clean-objects clean-libfiles clean-examples clean-gifplot clean-test-suite
|
||||||
|
|
||||||
clean-objects: clean-source
|
clean-objects: clean-source
|
||||||
|
|
||||||
|
|
@ -262,6 +264,9 @@ clean-source:
|
||||||
@cd $(SOURCE) && $(MAKE) -s clean
|
@cd $(SOURCE) && $(MAKE) -s clean
|
||||||
@rm -f $(TARGET)
|
@rm -f $(TARGET)
|
||||||
|
|
||||||
|
clean-libfiles:
|
||||||
|
@rm -f Lib/swigwarn.swg
|
||||||
|
|
||||||
clean-examples:
|
clean-examples:
|
||||||
@$(MAKE) -k -s check-examples ACTION=clean
|
@$(MAKE) -k -s check-examples ACTION=clean
|
||||||
|
|
||||||
|
|
@ -330,16 +335,16 @@ noskip-%-test-suite:
|
||||||
distclean-dead:
|
distclean-dead:
|
||||||
rm -f $(DISTCLEAN-DEAD)
|
rm -f $(DISTCLEAN-DEAD)
|
||||||
|
|
||||||
############################################################################
|
#####################################################################
|
||||||
# Update the Lib/swigwarn.swg file
|
# Update the Lib/swigwarn.swg file
|
||||||
############################################################################
|
#####################################################################
|
||||||
|
|
||||||
Lib/swigwarn.swg: Source/Include/swigwarn.h
|
Lib/swigwarn.swg: Source/Include/swigwarn.h
|
||||||
@echo "/* Automatically generated file containing all the swig warning codes. */" > $@
|
echo "/* Automatically generated file containing all the swig warning codes. */" > $@
|
||||||
@echo "/* Do not modify this file by hand, change 'Source/Include/swigwarn.h' */" >> $@
|
echo "/* Do not modify this file by hand, change 'Source/Include/swigwarn.h' */" >> $@
|
||||||
@echo "/* and use the command 'make Lib/swigwarn.swg' instead. */" >> $@
|
echo "/* and use the command 'make Lib/swigwarn.swg' instead. */" >> $@
|
||||||
@echo >> $@; echo >> $@
|
echo >> $@; echo >> $@
|
||||||
@awk '/#define WARN/{$$1="%define"; $$2="SWIG"$$2; $$3=sprintf("%d %%enddef", $$3); print $$0; next;}\
|
awk '/#define WARN/{$$1="%define"; $$2="SWIG"$$2; $$3=sprintf("%d %%enddef", $$3); print $$0; next;}\
|
||||||
/#/{next;} {print $0}' < $? >> $@
|
/#/{next;} {print $0}' < $? >> $@
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue