summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8c6ffe1..6680ecf 100644
--- a/Makefile
+++ b/Makefile
@@ -121,3 +121,7 @@ src:
REFLECTION: $(NAME).spec
php --re $(shell pwd | sed -e 's/.*-//') >REFLECTION
+
+composer:
+ tar xf $(shell spectool -l $(NAME).spec | sed -e 's:.*/::') --strip-components=1 '*/composer.json' && \
+ mv composer.json composer-$(shell sed -n '/^Version:/{s/[^0-9]*//;p}' $(NAME).spec).json