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 Dec 4, 2024
1 parent 899a96b commit ec2645e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,19 @@ 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; then \
$(if $(static),$(INSTALLDEF) $(BLD)miniapps/common/libmfem-common.a $(PREFIX_LIB) &&) \
$(if $(shared),$(INSTALLDEF) $(BLD)miniapps/common/libmfem-common.$(SO_VER) $(PREFIX_LIB) \
&& chmod $(INSTALL_BIN_PERM) $(PREFIX_LIB)/libmfem-common.$(SO_VER) \
&& ( umask $(INSTALLMASK) && 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
ifeq ($(NOTMAC),)
$(if $(shared),install_name_tool -id \
$(PREFIX_LIB)/libmfem-common.$(SO_VER) $(PREFIX_LIB)/libmfem-common.$(SO_VER))
endif
# install *.okl files
for dir in $(OKL_DIRS); do \
( $(MKINSTALLDIR) $(PREFIX_INC)/mfem/$$dir ) && \
Expand Down

0 comments on commit ec2645e

Please sign in to comment.