ENH: rationalize wmake rules to avoid unnecessary duplication

- main mplib rules located in GENERAL_RULES with specializations
  (if any) under RULES. Modest change in a few options files, but
  cleans up the rules directories.

  previously in options:
      include $(RULES)/mplib$(WM_MPLIB)

  now in options:
      sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
      sinclude $(RULES)/mplib$(WM_MPLIB)

  For GNU make it would be permissible to write both in a single line.
This commit is contained in:
Mark Olesen 2010-04-22 15:01:07 +02:00
parent 4d2a297a67
commit 0d44584112
115 changed files with 12 additions and 116 deletions

View File

@ -1,4 +1,5 @@
include $(RULES)/mplib$(WM_MPLIB)
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)
EXE_INC = $(PFLAGS) $(PINC)
EXE_INC = $(PFLAGS) $(PINC)
LIB_LIBS = $(PLIBS)

View File

@ -1,4 +1,5 @@
include $(RULES)/mplib$(WM_MPLIB)
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)
EXE_INC = $(PFLAGS) $(PINC)
EXE_INC = $(PFLAGS) $(PINC)
LIB_LIBS = $(PLIBS)

View File

@ -1,4 +1,5 @@
include $(RULES)/mplib$(WM_MPLIB)
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)
EXE_INC = \
$(PFLAGS) $(PINC) \

View File

@ -58,7 +58,7 @@ IFILES = $(WM_OPTIONS)/includeDeps
allFiles : $(FILES) $(SFILES) $(OFILES) $(DFILES) $(IFILES)
$(FILES) : files
@$(CPP) $(GFLAGS) $(FFLAGS) files > $(FILES)
@$(CPP) $(GFLAGS) $(FFLAGS) files | sed -e 's@ *@ @g' > $(FILES)
$(SFILES): files
@$(WM_SCRIPTS)/makeDerivedFiles

View File

@ -48,7 +48,7 @@ OPTIONS = $(WM_OPTIONS)/options
#------------------------------------------------------------------------------
$(OPTIONS) : options
@$(WM_SCRIPTS)/makeDir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options > $(OPTIONS)
@$(WM_SCRIPTS)/makeDir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options | sed -e 's@ *@ @g' > $(OPTIONS)
#------------------------------------------------------------------------------

View File

@ -9,3 +9,5 @@ include $(GENERAL_RULES)/coco-cpp
## include $(GENERAL_RULES)/btyacc++
include $(GENERAL_RULES)/bison
include $(GENERAL_RULES)/moc
include $(GENERAL_RULES)/X

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -2,6 +2,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibQSMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -2,6 +2,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibQSMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -2,6 +2,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibQSMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -5,6 +5,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibQSMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -2,6 +2,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -4,6 +4,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -4,6 +4,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -4,6 +4,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -6,6 +6,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibGAMMA

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibMPICH-GM

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/X

View File

@ -4,6 +4,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
include $(GENERAL_RULES)/standard
include $(RULES)/X
include $(RULES)/c
include $(RULES)/c++

View File

@ -1 +0,0 @@
../General/mplib

View File

@ -1 +0,0 @@
../General/mplibMPICH

View File

@ -1 +0,0 @@
../General/mplibOPENMPI

View File

@ -1 +0,0 @@
../General/mplibSYSTEMOPENMPI

View File

@ -1 +0,0 @@
../General/mplib

Some files were not shown because too many files have changed in this diff Show More