Skip to content

Commit

Permalink
Initialize ROOT_DIR variable before loop in apply_dist
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Nov 26, 2021
1 parent 6cf509e commit cdad79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ ${APP_DIR}/php.ini: php.ini
(cd ${APP_DIR} && ln -sf ../../php.ini)

apply_dist:
ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))); \
for i in `cd dist && find . -type f`; do \
FILE_PATH=`echo $$i | sed 's|./||'`; \
FOLDER_PATH=`dirname $$FILE_PATH`; \
ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))); \
echo $$FILE_PATH; \
(cd ${APP_DIR} && rm -f $$FILE_PATH); \
(cd ${APP_DIR} && mkdir -p $$FOLDER_PATH); \
Expand Down

0 comments on commit cdad79a

Please sign in to comment.