From d2a39305d8d190f0fa6d0485315a3586c93f8322 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Wed, 19 Jun 2024 16:44:11 -0400 Subject: Add support for VERSION flag --- Makefile | 3 +++ README.md | 19 +++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 874af3d..60007f5 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ err: BUILD_DIR = build SRC_MAKE_CALL = $(MAKE) -f src/Makefile BUILD_DIR=$(BUILD_DIR) NO_CSS=$(NO_CSS) LOCALE=$(LOCALE) +ifdef VERSION + SRC_MAKE_CALL += VERSION=$(VERSION) +endif # For this target, only archive docsets that have already been built in BUILD_DIR .phony: archive diff --git a/README.md b/README.md index b447529..8c973be 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,14 @@ This is a repository providing sources building various [Dash](https://kapeli.co ### Documentation - - ``` -Usage: make DOCSET_NAME [BUILD_DIR=...] [NO_CSS=yes] [LOCALE=...] +Usage: make DOCSET_NAME [BUILD_DIR=...] [NO_CSS=yes] [LOCALE=...] [VERSION=...] DOCSET_NAME must be a directory under ./src/configs. - BUILD_DIR can be set to a directory to build under. The default is ./build + BUILD_DIR can be set to a directory to build under. The default is ./build. NO_CSS if set to `yes`, build with stylesheets disabled. LOCALE specify a locale to build for (see below table for more details). + VERSION specify an upstream version to build from. Other possible targets: archive - create .tgz archives for all docsets in BUILD_DIR @@ -25,12 +24,12 @@ Other possible targets: This table shows which supported docsets support which options. All targets support the setting of DOCSET_NAME and BUILD_DIR. -| |LOCALE|NO_CSS| -|------------------------------------------------------|------|------| -|[debmake](https://salsa.debian.org/debian/debmake) |✓ (see [here](./src/configs/debmake/README.md))|| -|[flex](https://github.com/westes/flex)| | | | -|[GNU_Autoconf](https://www.gnu.org/software/autoconf/)| | | -|[GNU_Make](http://www.gnu.org/software/make/) | |✓ | +| |LOCALE|NO_CSS|VERSION| +|------------------------------------------------------|------|------|-------| +|[debmake](https://salsa.debian.org/debian/debmake) |✓ (see [here](./src/configs/debmake/README.md))||✓| +|[flex](https://github.com/westes/flex) | | |✓ | +|[GNU_Autoconf](https://www.gnu.org/software/autoconf/)| | |✓ | +|[GNU_Make](http://www.gnu.org/software/make/) | |✓ | | ### Build Requirements -- cgit