aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-07-08 07:03:07 +0800
committerolgeni <olgeni@FreeBSD.org>2015-07-08 07:03:07 +0800
commita3a7368474400b96044a7d7925fac1e3e9859291 (patch)
tree834c49f57d466121c84042bed5f5987d21bf352b /Mk/Uses
parent901770d3a809fb9dfe3161802516fdc7ed8b8af0 (diff)
downloadfreebsd-ports-gnome-a3a7368474400b96044a7d7925fac1e3e9859291.tar.gz
freebsd-ports-gnome-a3a7368474400b96044a7d7925fac1e3e9859291.tar.zst
freebsd-ports-gnome-a3a7368474400b96044a7d7925fac1e3e9859291.zip
In elixir.mk, replace custom targets with do-build and do-install.
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/elixir.mk14
1 files changed, 5 insertions, 9 deletions
diff --git a/Mk/Uses/elixir.mk b/Mk/Uses/elixir.mk
index 8156621a35cc..91491c0b259c 100644
--- a/Mk/Uses/elixir.mk
+++ b/Mk/Uses/elixir.mk
@@ -62,22 +62,17 @@ RUN_DEPENDS+= ${depend:T}>=0:${PORTSDIR}/${depend}
.endfor
.if !target(do-build)
-do-build: do-build-elixir
-.endif
-
-.if !target(do-install)
-do-install: do-install-elixir
-.endif
-
-do-build-elixir:
+do-build:
@${RM} -f ${WRKSRC}/mix.lock
@cd ${WRKSRC} && ${MIX_COMPILE}
.for app in ${MIX_EXTRA_APPS}
@${RM} -f ${WRKSRC}/${app}/mix.lock
@cd ${WRKSRC}/${app} && ${MIX_COMPILE}
.endfor
+.endif # .if !target(do-build)
-do-install-elixir:
+.if !target(do-install)
+do-install:
@${MKDIR} ${STAGEDIR}${ELIXIR_APP_ROOT}
@${MKDIR} ${STAGEDIR}${ELIXIR_APP_ROOT}/lib
cd ${WRKSRC}/lib && ${COPYTREE_SHARE} \* ${STAGEDIR}${ELIXIR_APP_ROOT}/lib
@@ -108,5 +103,6 @@ do-install-elixir:
${INSTALL_DATA} ${WRKSRC}/${app}/_build/${MIX_BUILD_NAME}/lib/*/ebin/* \
${STAGEDIR}${ELIXIR_APP_ROOT}/ebin
.endfor
+.endif # .if !target(do-install)
.endif #!defined(_INCLUDE_USES_ELIXIR_MK)