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 1ff8ef9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,14 @@ 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 miniapp common libraries and headers if built
if ls $(BLD)miniapps/common/libmfem-common.* > /dev/null 2>&1; then \
$(if $(static),$(INSTALLDEF) $(BLD)miniapps/common/libmfem-common.a $(PREFIX_LIB) &&) \
$(if $(shared),$(INSTALLDEF) $(BLD)miniapps/common/libmfem-common.$(SO_VER) $(PREFIX_LIB) \
&& ln -sf libmfem-common.$(SO_VER) $(PREFIX_LIB)/libmfem-common.$(SO_EXT) &&) \
$(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 1ff8ef9

Please sign in to comment.