Whitespace cleanup of all Makefiles*

- some of the %.clean rules in the test-suite Makefiles were using a single tab
  as an empty rule, dangerous! I've replaced these with the safer '@exit 0'.
This commit is contained in:
Karl Wette 2014-05-02 16:16:11 +02:00
commit d5b765d388
33 changed files with 138 additions and 167 deletions

View file

@ -75,4 +75,3 @@ linkchecker:
@echo Note linkchecker versions prior to 6.1 do not work properly wrt anchors @echo Note linkchecker versions prior to 6.1 do not work properly wrt anchors
@echo ----------------------------------------------------------------------- @echo -----------------------------------------------------------------------
linkchecker --config=./linkchecker.config index.html linkchecker --config=./linkchecker.config index.html

View file

@ -88,7 +88,7 @@ endif
################################################################## ##################################################################
CPP_DLLIBS = #-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \ CPP_DLLIBS = #-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \
-L/usr/local/lib -lg++ -lstdc++ -lgcc -L/usr/local/lib -lg++ -lstdc++ -lgcc
# Solaris workshop 5.0 # Solaris workshop 5.0
# CPP_DLLIBS = -L/opt/SUNWspro/lib -lCrun # CPP_DLLIBS = -L/opt/SUNWspro/lib -lCrun

View file

@ -123,4 +123,3 @@ run_testcase = \
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile allegrocl_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile allegrocl_clean

View file

@ -44,8 +44,7 @@ run_testcase = \
# Clean: (does nothing, we dont generate extra cffi code) # Clean: (does nothing, we dont generate extra cffi code)
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile cffi_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile cffi_clean

View file

@ -92,7 +92,7 @@ run_testcase = \
# Clean # Clean
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile chicken_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile chicken_clean

View file

@ -44,8 +44,7 @@ run_testcase = \
# Clean: (does nothing, we dont generate extra clisp code) # Clean: (does nothing, we dont generate extra clisp code)
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile clisp_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile clisp_clean

View file

@ -29,7 +29,7 @@ CPP_ERROR_TEST_CASES := $(filter cpp_%, $(ALL_ERROR_TEST_CASES))
C_ERROR_TEST_CASES := $(filter-out $(CPP_ERROR_TEST_CASES), $(ALL_ERROR_TEST_CASES)) C_ERROR_TEST_CASES := $(filter-out $(CPP_ERROR_TEST_CASES), $(ALL_ERROR_TEST_CASES))
ERROR_TEST_CASES := $(CPP_ERROR_TEST_CASES:=.cpptest) \ ERROR_TEST_CASES := $(CPP_ERROR_TEST_CASES:=.cpptest) \
$(C_ERROR_TEST_CASES:=.ctest) $(C_ERROR_TEST_CASES:=.ctest)
include $(srcdir)/../common.mk include $(srcdir)/../common.mk
@ -46,9 +46,8 @@ include $(srcdir)/../common.mk
$(COMPILETOOL) diff -c $*.stderr $*.$(ERROR_EXT) $(COMPILETOOL) diff -c $*.stderr $*.$(ERROR_EXT)
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile $(LANGUAGE)_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile $(LANGUAGE)_clean
@rm -f *.$(ERROR_EXT) *.py @rm -f *.$(ERROR_EXT) *.py

View file

@ -14,9 +14,9 @@ GUILE = @GUILE@
GUILE_RUNTIME= GUILE_RUNTIME=
C_TEST_CASES = long_long \ C_TEST_CASES = long_long \
list_vector \ list_vector \
multivalue \ multivalue \
pointer_in_out pointer_in_out
include $(srcdir)/../common.mk include $(srcdir)/../common.mk

View file

@ -52,7 +52,7 @@ run_testcase = \
# Clean: (does nothing, we dont generate extra lua code) # Clean: (does nothing, we dont generate extra lua code)
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile lua_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile lua_clean

View file

@ -42,7 +42,7 @@ run_testcase = \
# Clean # Clean
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile mzscheme_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile mzscheme_clean

View file

@ -46,4 +46,3 @@ run_testcase = \
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile pike_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile pike_clean

View file

@ -190,4 +190,3 @@ hugemod:
$(MAKE) hugemod_b.cpptest $(MAKE) hugemod_b.cpptest
sh -c "time $(PYTHON) $(hugemod_runme)" sh -c "time $(PYTHON) $(hugemod_runme)"
sh -c "time $(PYTHON) $(hugemod_runme)" sh -c "time $(PYTHON) $(hugemod_runme)"

View file

@ -58,7 +58,7 @@ run_multitestcase = \
for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \ for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$${f}$(SCRIPTSUFFIX) ]; then \ if [ -f $(srcdir)/$(SCRIPTPREFIX)$${f}$(SCRIPTSUFFIX) ]; then \
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=.:"$$PATH" \ env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=.:"$$PATH" \
$(RUNTOOL) $(RUNR) $(srcdir)/$(SCRIPTPREFIX)$${f}$(SCRIPTSUFFIX); \ $(RUNTOOL) $(RUNR) $(srcdir)/$(SCRIPTPREFIX)$${f}$(SCRIPTSUFFIX); \
else \ else \
$(RUNTOOL) $(RUNR) $(srcdir)/$(SCRIPTPREFIX)$${f}$(WRAPSUFFIX); \ $(RUNTOOL) $(RUNR) $(srcdir)/$(SCRIPTPREFIX)$${f}$(WRAPSUFFIX); \
fi; \ fi; \
@ -74,5 +74,3 @@ clean:
rm -f $${f}.R $${f}.Rout ; \ rm -f $${f}.R $${f}.Rout ; \
done \ done \
fi fi

View file

@ -66,7 +66,7 @@ run_testcase = \
# Clean # Clean
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile ruby_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile ruby_clean

View file

@ -51,7 +51,7 @@ run_testcase = \
# Clean # Clean
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile tcl_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile tcl_clean

View file

@ -44,8 +44,7 @@ run_testcase = \
# Clean: (does nothing, we dont generate extra uffi code) # Clean: (does nothing, we dont generate extra uffi code)
%.clean: %.clean:
@exit 0
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile uffi_clean $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile uffi_clean

View file

@ -1,4 +1,3 @@
co: co:
co RCS/*.i* RCS/*.swg* co RCS/*.i* RCS/*.swg*

View file

@ -1,4 +1,3 @@
co: co:
co RCS/*.i* RCS/*.swg* co RCS/*.i* RCS/*.swg*

View file

@ -67,7 +67,7 @@ BUILD = @LDSHARED@
# need to provide additional link libraries (this is not always required). # need to provide additional link libraries (this is not always required).
#DLL_LIBS = -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \ #DLL_LIBS = -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \
-L/usr/local/lib -lg++ -lstdc++ -lgcc -L/usr/local/lib -lg++ -lstdc++ -lgcc
# Perl installation # Perl installation
@ -118,9 +118,3 @@ $(TARGET): $(WRAPOBJ) $(ALLOBJS)
clean: clean:
rm -f $(COBJS) $(CXXOBJS) $(OBJCOBJS) $(WRAPOBJ) $(WRAPFILE) $(TARGET) rm -f $(COBJS) $(CXXOBJS) $(OBJCOBJS) $(WRAPOBJ) $(WRAPFILE) $(TARGET)

View file

@ -17,5 +17,3 @@ WriteMakefile(
'LIBS' => [''], # Custom libraries (if any) 'LIBS' => [''], # Custom libraries (if any)
'OBJECT' => '$module_wrap.o' # Object files 'OBJECT' => '$module_wrap.o' # Object files
); );

View file

@ -67,7 +67,7 @@ BUILD = @LDSHARED@
# need to provide additional link libraries (this is not always required). # need to provide additional link libraries (this is not always required).
#DLL_LIBS = -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \ #DLL_LIBS = -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \
-L/usr/local/lib -lg++ -lstdc++ -lgcc -L/usr/local/lib -lg++ -lstdc++ -lgcc
# Python installation # Python installation
@ -117,7 +117,3 @@ $(TARGET): $(WRAPOBJ) $(ALLOBJS)
clean: clean:
rm -f $(COBJS) $(CXXOBJS) $(OBJCOBJS) $(WRAPOBJ) $(WRAPFILE) $(TARGET) rm -f $(COBJS) $(CXXOBJS) $(OBJCOBJS) $(WRAPOBJ) $(WRAPFILE) $(TARGET)

View file

@ -69,7 +69,7 @@ BUILD = @LDSHARED@
# need to provide additional link libraries (this is not always required). # need to provide additional link libraries (this is not always required).
#DLL_LIBS = -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \ #DLL_LIBS = -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2 \
-L/usr/local/lib -lg++ -lstdc++ -lgcc -L/usr/local/lib -lg++ -lstdc++ -lgcc
# Tcl installation (where is Tcl located) # Tcl installation (where is Tcl located)
@ -120,7 +120,3 @@ $(TARGET): $(WRAPOBJ) $(ALLOBJS)
clean: clean:
rm -f $(COBJS) $(CXXOBJS) $(OBJCOBJS) $(WRAPOBJ) $(WRAPFILE) $(TARGET) rm -f $(COBJS) $(CXXOBJS) $(OBJCOBJS) $(WRAPOBJ) $(WRAPFILE) $(TARGET)

View file

@ -249,8 +249,8 @@ check-%-examples :
# gcj individual example # gcj individual example
java.actionexample: java.actionexample:
@if $(skip-gcj); then \ @if $(skip-gcj); then \
echo "skipping Examples/$(LANGUAGE)/java $(ACTION) (gcj test)"; \ echo "skipping Examples/$(LANGUAGE)/java $(ACTION) (gcj test)"; \
else \ else \
echo $(ACTION)ing Examples/$(LANGUAGE)/java; \ echo $(ACTION)ing Examples/$(LANGUAGE)/java; \
(cd Examples/$(LANGUAGE)/java && $(MAKE) $(FLAGS) $(chk-set-env) $(ACTION)) \ (cd Examples/$(LANGUAGE)/java && $(MAKE) $(FLAGS) $(chk-set-env) $(ACTION)) \
fi fi
@ -487,7 +487,7 @@ install-lib:
@for file in $(srcdir)/Lib/*.i $(srcdir)/Lib/*.swg ; do \ @for file in $(srcdir)/Lib/*.i $(srcdir)/Lib/*.swg ; do \
i=`basename $$file` ; \ i=`basename $$file` ; \
echo "Installing $(DESTDIR)$(SWIG_LIB)/$$i"; \ echo "Installing $(DESTDIR)$(SWIG_LIB)/$$i"; \
$(INSTALL_DATA) $$file $(DESTDIR)$(SWIG_LIB)/$$i; \ $(INSTALL_DATA) $$file $(DESTDIR)$(SWIG_LIB)/$$i; \
done; done;
@for lang in $(lib-languages) $(lib-modules); \ @for lang in $(lib-languages) $(lib-modules); \
do \ do \

View file

@ -145,4 +145,3 @@ beautify-file:
indent -kr --honour-newlines --line-length160 --indent-level2 --braces-on-func-def-line --leave-optional-blank-lines $(SWIGTYPEDEFS) $(INDENTFILE) -o $(INDENTFILE).tmp; indent -kr --honour-newlines --line-length160 --indent-level2 --braces-on-func-def-line --leave-optional-blank-lines $(SWIGTYPEDEFS) $(INDENTFILE) -o $(INDENTFILE).tmp;
cat $(INDENTFILE).tmp | sed -e 's/const const /const /' > $(INDENTFILE); cat $(INDENTFILE).tmp | sed -e 's/const const /const /' > $(INDENTFILE);
rm $(INDENTFILE).tmp; rm $(INDENTFILE).tmp;