diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-05 13:56:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-19 03:43:33 +0200 |
commit | fcf365f352ee4daf1dd538e64d7982faff2206d4 (patch) | |
tree | b72559f262e8b2a12dd93e858dc6b955aaf67ca7 /onlineupdate/CustomTarget_generated.mk | |
parent | a5204fe5b3a403f25a5a2781761cd2303391cf36 (diff) |
generate the certificate verification data as part of the build
Change-Id: I30186f76302e7666c833933b059931e8b1b7b78c
Diffstat (limited to 'onlineupdate/CustomTarget_generated.mk')
-rw-r--r-- | onlineupdate/CustomTarget_generated.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/onlineupdate/CustomTarget_generated.mk b/onlineupdate/CustomTarget_generated.mk new file mode 100644 index 000000000000..0c0f230387a8 --- /dev/null +++ b/onlineupdate/CustomTarget_generated.mk @@ -0,0 +1,30 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_CustomTarget_CustomTarget,onlineupdate/generated)) + +onlineupdate_INC := $(call gb_CustomTarget_get_workdir,onlineupdate/generated)/onlineupdate + +$(onlineupdate_INC)/primaryCert.h : \ + $(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,,1) + mkdir -p $(dir $@) + $(call gb_ExternalExecutable_get_command,python) $(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py "primaryCertData" /lo/users/moggi/NSSDBDir/master-daily.der > $(onlineupdate_INC)/primaryCert.h #"$(UPDATE_CONFIG)" + +$(onlineupdate_INC)/secondaryCert.h : \ + $(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,,1) + mkdir -p $(dir $@) + $(call gb_ExternalExecutable_get_command,python) $(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py "secondaryCertData" /lo/users/moggi/NSSDBDir/master-daily.der > $(onlineupdate_INC)/secondaryCert.h #"$(UPDATE_CONFIG)" + +$(call gb_CustomTarget_get_target,onlineupdate/generated) : \ + $(onlineupdate_INC)/primaryCert.h \ + $(onlineupdate_INC)/secondaryCert.h \ + +# vim: set noet sw=4 ts=4: |