Skip to content

Commit

Permalink
Use system composer if available
Browse files Browse the repository at this point in the history
  • Loading branch information
fetus-hina committed Jan 2, 2024
1 parent 305a978 commit 2c2c2d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ clean-resource:
web/assets/*

composer.phar:
curl -fsSL https://getcomposer.org/installer | php
ifeq (, $(shell which composer 2>/dev/null))
curl -fsSL 'https://getcomposer.org/installer' | php -- --filename=$@ --stable
else
ln -s `which composer` $@
endif

%.min.svg: %.svg node_modules
npx svgo --output $@ --input $< -q
Expand Down

0 comments on commit 2c2c2d7

Please sign in to comment.