CoreFiles by mySites.guru
Makefile39 lines, 1,068 bytes, from Joomla_5.3.4-Stable-Full_Package.zip
Raw History Compare with 5.3.3
md5
8a6965d45479ea87e48f57ce2cbb1dd2
sha1
5d5f6e9c123d520678875dc520e86a60a982f84d
sha256
792a3da94e0d333fe34cf6451eb0787e9242f4d427d34473f58931cea76a96c9
# 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 := $(shell which composer)
gitcommit := $(shell git rev-parse HEAD)

.PHONY: all
all: build-phar

.PHONY: sign-phar
sign-phar:
	gpg -u DD2E507F7BDB1669 --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 $(box) compile -c box.json -v

composer.lock:
	$(composer) config autoloader-suffix $(gitcommit)
	$(composer) install --no-dev

The same content is in 193 releases, Joomla 4.4.0-alpha2 to 6.3.0-alpha1. See them all, or every version of this file.