STYLE: formatting in makefiles, config files

- fix typo in makefiles/info that affected wmake -show-compile-c

- additional safeguard in src/OpenFOAM/Make/options against self-linking.
  This is not normally required unless PROJECT_LIBS has been added into
  the link stage.
This commit is contained in:
Mark Olesen
2019-04-16 12:39:25 +02:00
committed by Andrew Heather
parent d14f181529
commit 2d7c266d37
6 changed files with 17 additions and 12 deletions

View File

@ -38,7 +38,7 @@ endif
#------------------------------------------------------------------------------
# Set the directory containing the wmake scripts
# Directory containing the wmake scripts
#------------------------------------------------------------------------------
WM_SCRIPTS = $(WM_DIR)/scripts

View File

@ -19,7 +19,7 @@
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Use POSIX shell. Default to POSIX for the OS.
# Use POSIX shell
#------------------------------------------------------------------------------
SHELL = /bin/sh
@ -63,7 +63,7 @@ ext-so:
.PHONY: compile-c
compile-c:
@echo "$(COMP_C)"
@echo "$(COMPILE_C)"
.PHONY: compile-cxx
compile-cxx:

View File

@ -32,13 +32,13 @@
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# The Makefile use a POSIX shell
# Use POSIX shell
#------------------------------------------------------------------------------
SHELL = /bin/sh
SHELL = /bin/sh
#------------------------------------------------------------------------------
# Unset suffices list (suffix rules are not used)
# No default suffix rules used
#------------------------------------------------------------------------------
.SUFFIXES:
@ -62,10 +62,10 @@ include $(GENERAL_RULES)/general
.PHONY: all clean
all: $(WMAKE_BIN)/dirToString $(WMAKE_BIN)/wmkdep $(WMAKE_BIN)/wmkdepend
@echo built wmake-bin for $(WM_ARCH)$(WM_COMPILER)
@echo "built wmake-bin for $(WM_ARCH)$(WM_COMPILER)"
clean:
@echo clean wmake-bin for $(WM_ARCH)$(WM_COMPILER)
@echo "clean wmake-bin for $(WM_ARCH)$(WM_COMPILER)"
@rm -rf $(WMAKE_BIN) 2>/dev/null
@rmdir $(shell dirname $(WMAKE_BIN)) 2>/dev/null || true