Skip to content

Commit

Permalink
cleanup(build): move install_files to lib template
Browse files Browse the repository at this point in the history
  • Loading branch information
becm committed Oct 2, 2023
1 parent 6dbba92 commit 4d00dd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions mpt.lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ ${LIB_SHARED} : ${SHLIB_OBJS}
extensions = a so so.${SHLIB_MAJOR} so.${SHLIB_MAJOR}.${SHLIB_MINOR} so.${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}
CLEAR_FILES += $(extensions:%=${LIB_FULLNAME}.%)
#
# installation shortcut
define install_files
$(if $(strip ${2}),@install -d '${1}' && install -C -m 644 ${2} '${1}' && printf 'install(%s): %s\n' '${1}' '${2}')
endef
#
# header export
.PHONY: header
header : ${HEADER}; $(call install_files,${PREFIX_INC},${HEADER})
Expand Down
5 changes: 0 additions & 5 deletions mpt.tag.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ VCS_TAG ?= $(strip $(call vcs_tag))
#
# define VCS tag or ISO date
DEF += $(if ${VCS_TAG},'__VCS_TAG__="${VCS_TAG}"','__ISO_DATE__="${ISODATE}"')
#
# install header files
define install_files
$(if $(strip ${2}),@install -d '${1}' && install -C -m 644 ${2} '${1}' && printf 'install(%s): %s\n' '${1}' '${2}')
endef

0 comments on commit 4d00dd9

Please sign in to comment.