diff --git a/dist/Makefile b/dist/Makefile index 1678e12f..c65dd797 100644 --- a/dist/Makefile +++ b/dist/Makefile @@ -31,7 +31,9 @@ clean: sodium-compat.phar: dist/box.json composer.lock if [ ! -d dist ]; then mkdir dist; fi - if [ ! -f dist/box.json ]; then cp ../dist/box.json dist/box.json; 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 echo "Could not locate box.json" && exit 255; fi cp dist/box.json . php -d phar.readonly=0 $(box) build -c box.json -v