CoreFiles by mySites.guru
Makefile37 lines, 972 bytes, from Joomla_4.0.0-beta4-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta3
md5
b8c064abbed0fbc0b903b6e66f03ee08
sha1
3086afd2fdd0f106911bf1f57ca11def644cd21a
sha256
e138a01471b8d15ae8a8ea6360e4ac948f7208d9bfc3e7859472d499a9aa94a4
# This builds defuse-crypto.phar. To run this Makefile, `box` and `composer`
# must be installed and in your $PATH. Run it from inside the dist/ directory.

box := $(shell which box)
composer := "composer"

.PHONY: all
all: build-phar

.PHONY: sign-phar
sign-phar:
	gpg -u 7B4B2D98 --armor --output defuse-crypto.phar.sig --detach-sig defuse-crypto.phar

# ensure we run in clean tree. export git tree and run there.
.PHONY: build-phar
build-phar:
	@echo "Creating .phar from revision $(shell git rev-parse HEAD)."
	rm -rf worktree
	install -d worktree
	(cd $(CURDIR)/..; git archive HEAD) | tar -x -C worktree
	$(MAKE) -f $(CURDIR)/Makefile -C worktree defuse-crypto.phar
	mv worktree/*.phar .
	rm -rf worktree

.PHONY: clean
clean:
	rm -vf defuse-crypto.phar defuse-crypto.phar.sig

# Inside workdir/:

defuse-crypto.phar: dist/box.json composer.lock
	cp dist/box.json .
	php -d phar.readonly=0 $(box) build -c box.json -v

composer.lock:
	$(composer) install --no-dev

The same content is in 15 releases, Joomla 4.0.0-alpha5 to 4.0.0-beta7. See them all, or every version of this file.