Skip to content

Commit

Permalink
Merge pull request #105 from DUNE/liam-fix-makefiles-again
Browse files Browse the repository at this point in the history
fixed makefiles again
  • Loading branch information
LiamOS authored May 3, 2024
2 parents 03a39b0 + 4c74dd8 commit 69e664a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ CLHEP_LIBS = $(shell clhep-config --libs)
CLHEP_INC = $(shell clhep-config --prefix)/include/

ifndef CLHEP_INC # If not defined, normal build.
CLHEP_INC = $(shell clhep-config --prefix)/include/
CLHEP_INC = $(shell clhep-config --prefix)/include
CLHEP_LIBS = $(shell clhep-config --libs)
else # github CI passes CLHEP_INC as an environment var, use this to set lib dir
CLHEP_LIBS = $(CLHEP_INC)/../../lib64
ifndef CLHEP_LIBS # If this is defined here it was set in src/Makefile
CLHEP_LIBS = -L$(CLHEP_INC)/../lib64
endif
endif

EDEP_LIBS = -L $(EDEPSIM_LIB) -ledepsim_io $(CLHEP_LIBS)
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ GEANT4_LIBS = $(shell geant4-config --libs)
GEANT4_INC = $(shell geant4-config --prefix)/include/

ifndef CLHEP_INC # If not defined, normal build.
CLHEP_INC = $(shell clhep-config --prefix)/include/
CLHEP_INC = $(shell clhep-config --prefix)/include
CLHEP_LIBS = $(shell clhep-config --libs)
else # github CI passes CLHEP_INC as an environment var, use this to set lib dir
CLHEP_LIBS = $(CLHEP_INC)/../../lib64
CLHEP_LIBS = -L$(CLHEP_INC)/../../lib64
endif

EDEP_LIBS = -L $(EDEPSIM_LIB) -ledepsim_io $(CLHEP_LIBS)
Expand Down

0 comments on commit 69e664a

Please sign in to comment.