Skip to content

Commit

Permalink
Attempting to use a different variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
permcody committed May 2, 2019
1 parent 5956d92 commit a6388e5
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 35 deletions.
6 changes: 3 additions & 3 deletions framework/app.mk
Expand Up @@ -264,8 +264,8 @@ LIBRARY_SUFFIX :=
$(eval $(call CXX_RULE_TEMPLATE,_with$(app_LIB_SUFFIX)))

# If this is a matching module then build the exec, otherwise fall back and use the variable
ifneq (, $(SAVED_APPLICATION_NAME))
ifeq ($(SAVED_APPLICATION_NAME),$(APPLICATION_NAME))
ifneq (,$(MODULE_NAME))
ifeq ($(MODULE_NAME),$(APPLICATION_NAME))
all:: $(app_EXEC)
else
all:: $(app_LIB)
Expand Down Expand Up @@ -298,7 +298,7 @@ $(app_LIB): curr_dir := $(APPLICATION_DIR)
$(app_LIB): curr_deps := $(depend_libs)
$(app_LIB): curr_libs := $(depend_libs_flags)
$(app_LIB): $(app_HEADER) $(app_plugin_deps) $(depend_libs) $(app_objects) $(ADDITIONAL_DEPEND_LIBS)
@echo "SAVED_APPLICATION_NAME: " $(SAVED_APPLICATION_NAME)
@echo "MODULE_NAME: " $(MODULE_NAME)
@echo "APPLICATION_NAME: " $(APPLICATION_NAME)
@echo "SKIP_LOADER: " $(SKIP_LOADER)
@echo "Linking Library "$@"..."
Expand Down
2 changes: 1 addition & 1 deletion modules/chemical_reactions/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := chemical_reactions
MODULE_NAME := chemical_reactions
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/contact/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := contact
MODULE_NAME := contact
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/external_petsc_solver/Makefile
Expand Up @@ -18,7 +18,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := external_petsc_solver
MODULE_NAME := external_petsc_solver
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/fluid_properties/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := fluid_properties
MODULE_NAME := fluid_properties
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/functional_expansion_tools/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := functional_expansion_tools
MODULE_NAME := functional_expansion_tools
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/heat_conduction/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := heat_conduction
MODULE_NAME := heat_conduction
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/level_set/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := level_set
MODULE_NAME := level_set
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/misc/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := misc
MODULE_NAME := misc
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
27 changes: 12 additions & 15 deletions modules/modules.mk
@@ -1,19 +1,16 @@
###############################################################################
############################ COMMON MODULES ###################################
###############################################################################
################################################################################
############################ COMMON MODULES ####################################
################################################################################

# When building an individual module, you should define APPLICATION_NAME to the
# module you want to build before including this file. When doing that, there
# is no need to duplicate the dependencies in the individual module's Makefile.
# However, since APPLICATION_NAME gets redefined several times if multiple
# modules are being built we need to save it off to keep track when we need
# to build the exec for it or not.
# When building an individual module, you should define MODULE_NAME (lower case)
# to the module you want to build before including this file. When doing that,
# there is no need to duplicate the dependencies in the individual module's
# Makefile.

SAVED_APPLICATION_NAME := $(APPLICATION_NAME)
ifneq (, $(SAVED_APPLICATION_NAME))
# Exec will automatically be built for the given APPLICATION_NAME
ifneq (,$(MODULE_NAME))
# Exec will automatically be built for the given MODULE_NAME
SKIP_LOADER := yes
UC_APP = $(shell echo $(SAVED_APPLICATION_NAME) | tr a-z A-Z)
UC_APP = $(shell echo $(MODULE_NAME) | tr a-z A-Z)
$(eval $(UC_APP):=yes)
endif

Expand Down Expand Up @@ -65,8 +62,8 @@ endif
# The master list of all moose modules
MODULE_NAMES := "chemical_reactions contact fluid_properties functional_expansion_tools heat_conduction level_set misc navier_stokes phase_field porous_flow rdg richards solid_mechanics stochastic_tools tensor_mechanics xfem external_petsc_solver"

###############################################################################
########################## MODULE REGISTRATION ################################
################################################################################
########################## MODULE REGISTRATION #################################
###############################################################################
GEN_REVISION := no

Expand Down
2 changes: 1 addition & 1 deletion modules/navier_stokes/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := navier_stokes
MODULE_NAME := navier_stokes
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/phase_field/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := phase_field
MODULE_NAME := phase_field
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/porous_flow/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := porous_flow
MODULE_NAME := porous_flow
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/rdg/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := rdg
MODULE_NAME := rdg
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/richards/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := richards
MODULE_NAME := richards
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/solid_mechanics/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := solid_mechanics
MODULE_NAME := solid_mechanics
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/stochastic_tools/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := stochastic_tools
MODULE_NAME := stochastic_tools
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/tensor_mechanics/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := tensor_mechanics
MODULE_NAME := tensor_mechanics
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion modules/xfem/Makefile
Expand Up @@ -19,7 +19,7 @@ include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

# Module
APPLICATION_NAME := xfem
MODULE_NAME := xfem
include $(MODULE_DIR)/modules.mk

###############################################################################
Expand Down

0 comments on commit a6388e5

Please sign in to comment.