1# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2#
3# This file is part of the LibreOffice project.
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#
9
10$(eval $(call gb_CustomTarget_CustomTarget,onlineupdate/generated))
11
12onlineupdate_INC := $(call gb_CustomTarget_get_workdir,onlineupdate/generated)/onlineupdate
13
14$(onlineupdate_INC)/primaryCert.h : \
15		$(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py \
16		$(call gb_ExternalExecutable_get_dependencies,python)
17	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,,1)
18	mkdir -p $(dir $@)
19	$(call gb_ExternalExecutable_get_command,python) $(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py "primaryCertData" $(UPDATE_CONFIG) > $(onlineupdate_INC)/primaryCert.h #"$(UPDATE_CONFIG)"
20
21$(onlineupdate_INC)/secondaryCert.h : \
22		$(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py \
23		$(call gb_ExternalExecutable_get_dependencies,python)
24	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,,1)
25	mkdir -p $(dir $@)
26	$(call gb_ExternalExecutable_get_command,python) $(SRCDIR)/onlineupdate/source/update/updater/gen_cert_header.py "secondaryCertData" $(UPDATE_CONFIG) > $(onlineupdate_INC)/secondaryCert.h #"$(UPDATE_CONFIG)"
27
28$(call gb_CustomTarget_get_target,onlineupdate/generated) : \
29	$(onlineupdate_INC)/primaryCert.h \
30	$(onlineupdate_INC)/secondaryCert.h \
31
32# vim: set noet sw=4 ts=4:
33