CONFIG: restrict wmakeLnInclude to header/template files
- source-code (.c, .cpp etc) only adds to clutter in the lnInclude directory
This commit is contained in:
parent
5e0a23edd5
commit
1b11e4b3ac
@ -1,4 +1,4 @@
|
||||
/* Install into FOAM_APPBIN to support 'fake' builds (to test packaging) */
|
||||
Test-dummyLib.C
|
||||
Test-dummyLib.cpp
|
||||
|
||||
EXE = $(FOAM_APPBIN)/Test-dummyLib
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Install into central FOAM_LIBBIN for 'fake' builds (test packaging) */
|
||||
dummyLib.C
|
||||
dummyLib.cpp
|
||||
|
||||
LIB = $(FOAM_LIBBIN)/libTestDummy-OpenFOAM
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Install into central FOAM_LIBBIN/dummy for 'fake' builds (test packaging) */
|
||||
dummyMpiLib.C
|
||||
dummyMpiLib.cpp
|
||||
|
||||
LIB = $(FOAM_LIBBIN)/dummy/libTestDummyMpi
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Install into central FOAM_MPI_LIBBIN for 'fake' builds (test packaging) */
|
||||
dummyMpiLib.C
|
||||
dummyMpiLib.cpp
|
||||
|
||||
LIB = $(FOAM_MPI_LIBBIN)/libTestDummyMpi
|
||||
|
@ -1,3 +1,3 @@
|
||||
Test-openmp.C
|
||||
Test-openmp.cpp
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-openmp
|
||||
|
@ -22,11 +22,12 @@
|
||||
# Link source files in the specified dir(s) into their respective
|
||||
# lnInclude directories
|
||||
#
|
||||
# Header files (C) : .h
|
||||
# Source files (C) : .c
|
||||
# Header files (C++) : .H .hh .hpp .hxx
|
||||
# Source files (C++) : .C .cc .cpp .cxx
|
||||
# Template files (C++) : .tcc .tpp .txx
|
||||
# Header files : .h .H .hh .hpp .hxx
|
||||
# Template files : .C .tcc .tpp .txx
|
||||
#
|
||||
# Note
|
||||
# OpenFOAM has historically used '.C' files both for compiled code
|
||||
# and templated code.
|
||||
#
|
||||
# GNU make suffixes : .c .cc .C .cpp
|
||||
#
|
||||
@ -226,12 +227,11 @@ do
|
||||
\( -name lnInclude -o -name Make -o -name config -o -name noLink \) \
|
||||
-prune \
|
||||
-o \( \
|
||||
-name '*.[CHch]' \
|
||||
-o -name '*.cc' \
|
||||
-name '*.[CHh]' \
|
||||
-o -name '*.hh' \
|
||||
-o -name '*.[cht]xx' \
|
||||
-o -name '*.[cht]pp' \
|
||||
-o -name '*.tcc' \
|
||||
-o -name '*.[ht]pp' \
|
||||
-o -name '*.[ht]xx' \
|
||||
\) \
|
||||
-exec ln "$optLink" {} . \;
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user