From 264a1bccd373558cdbefdef371198aa20ac7324f Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 7 Nov 2014 10:16:41 +0900 Subject: [PATCH] Bug 1094521 - Rewrite export rules in toolkit/mozapps/update/updater/Makefile.in to not regenerate files every time. r=mshal --- toolkit/mozapps/update/updater/Makefile.in | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/toolkit/mozapps/update/updater/Makefile.in b/toolkit/mozapps/update/updater/Makefile.in index 07b1603e37bb..81b8a0be4914 100644 --- a/toolkit/mozapps/update/updater/Makefile.in +++ b/toolkit/mozapps/update/updater/Makefile.in @@ -24,10 +24,16 @@ else SECONDARY_CERT = dep2.der endif -export:: - $(PYTHON) $(srcdir)/gen_cert_header.py primaryCertData $(srcdir)/$(PRIMARY_CERT) > primaryCert.h - $(PYTHON) $(srcdir)/gen_cert_header.py secondaryCertData $(srcdir)/$(SECONDARY_CERT) > secondaryCert.h - $(PYTHON) $(srcdir)/gen_cert_header.py xpcshellCertData $(srcdir)/xpcshellCertificate.der > xpcshellCert.h +CERT_HEADERS := primaryCert.h secondaryCert.h xpcshellCert.h + +export:: $(CERT_HEADERS) + +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 libs:: updater.png