Python examples makefiles clean target fixed and use RUNPIPE and tidyup
This commit is contained in:
parent
0fa791d1ea
commit
cc4ac0a9e9
35 changed files with 232 additions and 275 deletions
|
|
@ -1,10 +1,4 @@
|
|||
ifeq (,$(PY3))
|
||||
PYSCRIPT = runme.py
|
||||
else
|
||||
PYSCRIPT = runme3.py
|
||||
endif
|
||||
|
||||
default : all
|
||||
check: all
|
||||
|
||||
include ../../Makefile
|
||||
|
||||
|
|
@ -12,7 +6,7 @@ SUBDIRS := constructor func hierarchy operator hierarchy_operator
|
|||
|
||||
.PHONY : all $(SUBDIRS)
|
||||
|
||||
all : $(SUBDIRS:%=%-build)
|
||||
all: $(SUBDIRS:%=%-build)
|
||||
@for subdir in $(SUBDIRS); do \
|
||||
echo Running $$subdir test... ; \
|
||||
echo -------------------------------------------------------------------------------- ; \
|
||||
|
|
@ -21,17 +15,17 @@ all : $(SUBDIRS:%=%-build)
|
|||
cd ..; \
|
||||
done
|
||||
|
||||
$(SUBDIRS) :
|
||||
$(SUBDIRS):
|
||||
$(MAKE) -C $@
|
||||
@echo Running $$subdir test...
|
||||
@echo --------------------------------------------------------------------------------
|
||||
cd $@ && env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT)
|
||||
|
||||
%-build :
|
||||
%-build:
|
||||
$(MAKE) -C $*
|
||||
|
||||
%-clean :
|
||||
%-clean:
|
||||
$(MAKE) -s -C $* clean
|
||||
|
||||
clean : $(SUBDIRS:%=%-clean)
|
||||
clean: $(SUBDIRS:%=%-clean)
|
||||
rm -f *.pyc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue