diff --git a/dist/Makefile b/dist/Makefile index c65dd797..34c4817c 100644 --- a/dist/Makefile +++ b/dist/Makefile @@ -31,8 +31,10 @@ clean: sodium-compat.phar: dist/box.json composer.lock if [ ! -d dist ]; then mkdir dist; fi - if [ ! -f dist/box.json && -f ../box.json ]; then cp ../box.json dist/box.json; fi - if [ ! -f dist/box.json && -f ../dist/box.json ]; then cp ../dist/box.json dist/box.json; fi + if [ ! -f dist/box.json ]; then cp ./box.json dist/box.json; fi + if [ ! -f dist/box.json ]; then cp ../box.json dist/box.json; fi + if [ ! -f dist/box.json ]; then cp ../dist/box.json dist/box.json; fi + if [ ! -f dist/box.json ]; then cp ../../dist/box.json dist/box.json; fi if [ ! -f dist/box.json ]; then echo "Could not locate box.json" && exit 255; fi cp dist/box.json . php -d phar.readonly=0 $(box) build -c box.json -v