diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2019-03-04 16:54:06 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-03-19 15:16:51 +0100 |
commit | 7a9f6df7fb83ec23d09cb5744c2c865fa22e7143 (patch) | |
tree | 62af385480790172d4d55ccc05d88432c41aa6db /odk | |
parent | 37399c71004d338bab9bfaba9023f6d7b463a286 (diff) |
single source file for licensing info with conditional text
... for easier maintenance. This commit only introduces the
framework. Follow up commits will update the license file.
Advantages:
* single source, multiple outputs (html, txt)
* conditional text, i.e. output will not include license
terms of components that are not configured in the build
Change-Id: I0ffad41119228a0a26fd1b6ce19930ca6085adb2
Reviewed-on: https://gerrit.libreoffice.org/69396
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'odk')
-rw-r--r-- | odk/Package_share_readme.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/odk/Package_share_readme.mk b/odk/Package_share_readme.mk index 558bdd5cb84d..8a40075c5044 100644 --- a/odk/Package_share_readme.mk +++ b/odk/Package_share_readme.mk @@ -7,17 +7,19 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -$(eval $(call gb_Package_Package,odk_share_readme,$(SRCDIR))) +readlicense_oo_DIR := $(call gb_CustomTarget_get_workdir,readlicense_oo/license) +$(eval $(call gb_Package_Package,odk_share_readme,$(readlicense_oo_DIR))) $(eval $(call gb_Package_set_outdir,odk_share_readme,$(INSTDIR))) $(eval $(call gb_Package_add_files,odk_share_readme,$(SDKDIRNAME)/share/readme,\ - readlicense_oo/license/LICENSE.html \ + license.html \ )) # for WNT see Package_share_readme_generated.mk ifneq ($(OS),WNT) -$(eval $(call gb_Package_add_file,odk_share_readme,$(SDKDIRNAME)/share/readme/LICENSE,readlicense_oo/license/LICENSE)) +readlicense_oo_DIR := $(call gb_CustomTarget_get_workdir,readlicense_oo/license) +$(eval $(call gb_Package_add_file,odk_share_readme,$(SDKDIRNAME)/share/readme/LICENSE,LICENSE)) endif # vim: set noet sw=4 ts=4: |