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 0797adb commit 73e3366
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,13 @@ 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)) \
$(if $(shared),$(INSTALLDEF) $(BLD)miniapps/common/libmfem-common.$(SO_VER) $(PREFIX_LIB)) \
$(if $(shared),ln -sf libmfem.$(SO_VER) $(PREFIX_LIB)/libmfem.$(SO_EXT)); \
fi
# install top level includes
$(MKINSTALLDIR) $(PREFIX_INC)/mfem
$(INSTALLDEF) $(SRC)mfem.hpp $(SRC)mfem-performance.hpp \
Expand All @@ -629,6 +636,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 73e3366

Please sign in to comment.