Python examples makefiles clean target fixed and use RUNPIPE and tidyup

This commit is contained in:
William S Fulton 2013-04-13 21:44:04 +01:00
commit cc4ac0a9e9
35 changed files with 232 additions and 275 deletions

View file

@ -5,20 +5,18 @@ TARGET = example
INTERFACE = example.i
LIBS = -lm
all:: Example.class
check: build
build: Example.class
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' CXX="gcj" \
CXXSHARED="gcj -fpic -shared Example.class" DEFS='' LIBS="-lstdc++" python_cpp
clean::
clean:
$(MAKE) -f $(TOP)/Makefile python_clean
rm -f $(TARGET).py
rm -f *.class Example.h
check: all
Example.class: Example.java
gcj -fPIC -C -c -g Example.java
gcjh Example