Bug 1094521 - Rewrite export rules in toolkit/mozapps/update/updater/Makefile.in to not regenerate files every time. r=mshal

This commit is contained in:
Mike Hommey 2014-11-07 10:16:41 +09:00
parent 3debcc4e0c
commit 297afd1bbb

View File

@ -24,10 +24,16 @@ else
SECONDARY_CERT = dep2.der SECONDARY_CERT = dep2.der
endif endif
export:: CERT_HEADERS := primaryCert.h secondaryCert.h xpcshellCert.h
$(PYTHON) $(srcdir)/gen_cert_header.py primaryCertData $(srcdir)/$(PRIMARY_CERT) > primaryCert.h
$(PYTHON) $(srcdir)/gen_cert_header.py secondaryCertData $(srcdir)/$(SECONDARY_CERT) > secondaryCert.h export:: $(CERT_HEADERS)
$(PYTHON) $(srcdir)/gen_cert_header.py xpcshellCertData $(srcdir)/xpcshellCertificate.der > xpcshellCert.h
primaryCert.h: $(PRIMARY_CERT)
secondaryCert.h: $(SECONDARY_CERT)
xpcshellCert.h: xpcshellCertificate.der
$(CERT_HEADERS): gen_cert_header.py
$(PYTHON) $< $(@:.h=Data) $(filter-out $<,$^) > $@
ifdef MOZ_WIDGET_GTK ifdef MOZ_WIDGET_GTK
libs:: updater.png libs:: updater.png