diff options
Diffstat (limited to 'devel/elib/Makefile')
-rw-r--r-- | devel/elib/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/devel/elib/Makefile b/devel/elib/Makefile index 89a67cd2be00..9396ad1b2162 100644 --- a/devel/elib/Makefile +++ b/devel/elib/Makefile @@ -30,8 +30,14 @@ EMACS_PORT_NAME= emacs21 # target name for make build ALL_TARGET?= all +INFO= elib + .include <bsd.port.pre.mk> +.if !defined(NOPORTDOCS) +PORTDOCS= ChangeLog NEWS README +.endif + PLIST_SUB+= EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \ PORT_SETUPEL=${PORT_SETUPEL} MAKE_ARGS+= EMACS="${EMACS_CMD} -q --no-site-file" \ @@ -59,13 +65,14 @@ PLIST_SUB+= LOADPATHSETUP:="@comment " post-build: @${ECHO_CMD} "(provide 'elib-startup)" >> ${WRKSRC}/${PORT_SETUPEL} -post-install: .if defined(INSTALL_LOADPATHSETUP) - @${MAKE} setupel-install +POST_INSTALL_SEQ+= setupel-install .endif .if !defined(NOPORTDOCS) - @${MAKE} doc-install +POST_INSTALL_SEQ+= doc-install .endif + +post-install: ${POST_INSTALL_SEQ} .if exists(${PKGMESSAGE}) @${CAT} ${PKGMESSAGE} .endif @@ -73,7 +80,7 @@ post-install: doc-install: ${MKDIR} ${DOCSDIR} cd ${INSTALL_WRKSRC} && \ - for i in ChangeLog NEWS README ; do \ + for i in ${PORTDOCS} ; do \ ${INSTALL_DATA} $${i} ${DOCSDIR} ; \ done |