зеркало из
1
0
Форкнуть 0

Call clean before building xpis

The previous package target had `rm -f $$arch.xpi` but this
was never matching any XPI file built here.
This commit is contained in:
Julian Descottes 2018-09-14 10:41:59 +02:00
Родитель 9397772e41
Коммит f004068125
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -6,13 +6,19 @@ VERSION=`grep -Eo '"version"\:\s*"[^"]+' $(MANIFEST) | grep -Eo '[0-9].*'`
define build-xpis
for arch in $(ARCHS); do \
echo "build $$arch-$(VERSION).xpi"; \
rm -f $$arch.xpi; \
zip $$arch-$(VERSION).xpi -r $$arch adb.json $(MANIFEST); \
done
endef
define clean
echo "Remove previous xpi files"; \
rm -f *.xpi
endef
# default target, clean previous XPIs and build new ones.
package:
@$(call clean)
@$(call build-xpis)
clean:
rm -f *.xpi
@$(call clean)