Skip to content

Commit

Permalink
Install miniapp content w/ GNU make
Browse files Browse the repository at this point in the history
  • Loading branch information
nmnobre committed Nov 25, 2024
1 parent fe9bd03 commit 5237f43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,15 @@ install: $(if $(static),$(BLD)libmfem.a) $(if $(shared),$(BLD)libmfem.$(SO_EXT))
# install static and/or shared library
$(if $(static),$(INSTALLDEF) $(BLD)libmfem.a $(PREFIX_LIB))
$(if $(shared),$(INSTALL_SHARED_LIB))
# install miniapps common libs
if ls $(BLD)miniapps/common/libmfem-common.* > /dev/null 2>&1; then \
$(MKINSTALLDIR) $(PREFIX_LIB)/mfem/miniapps/common \
$(if $(static),$(INSTALLDEF) $(BLD)miniapps/common/libmfem-common.a \
$(PREFIX_LIB)/mfem/miniapps/common) \
$(if $(shared),$(INSTALLDEF) $(BLD)miniapps/common/libmfem-common.$(SO_VER) \
$(PREFIX_LIB)/mfem/miniapps/common && \
ln -sf libmfem.$(SO_VER) $(PREFIX_LIB)/mfem/miniapps/common/libmfem.$(SO_EXT)) \
fi
# install top level includes
$(MKINSTALLDIR) $(PREFIX_INC)/mfem
$(INSTALLDEF) $(SRC)mfem.hpp $(SRC)mfem-performance.hpp \
Expand All @@ -629,6 +638,11 @@ install: $(if $(static),$(BLD)libmfem.a) $(if $(shared),$(BLD)libmfem.$(SO_EXT))
( $(MKINSTALLDIR) $(PREFIX_INC)/mfem/$$dir ) && \
$(INSTALLDEF) $(SRC)$$dir/*.hpp $(PREFIX_INC)/mfem/$$dir; \
done
# install miniapps common headers
if ls $(BLD)miniapps/common/libmfem-common.* > /dev/null 2>&1; then \
$(MKINSTALLDIR) $(PREFIX_INC)/mfem/miniapps/common \
$(INSTALLDEF) $(SRC)miniapps/common/*.hpp $(PREFIX_INC)/mfem/miniapps/common \
fi
# install *.okl files
for dir in $(OKL_DIRS); do \
( $(MKINSTALLDIR) $(PREFIX_INC)/mfem/$$dir ) && \
Expand Down

0 comments on commit 5237f43

Please sign in to comment.