Minos Galanakis | f4ca6ac | 2017-12-11 02:39:21 +0100 | [diff] [blame] | 1 | # -----------------------------------------------------------------------------\ |
| 2 | # Copyright (c) 2017-2019, Arm Limited and Contributors. All rights reserved. \ |
| 3 | # \ |
| 4 | # SPDX-License-Identifier: BSD-3-Clause \ |
| 5 | # \ |
| 6 | ------------------------------------------------------------------------------*/ |
| 7 | |
| 8 | .PHONY: all |
| 9 | |
| 10 | COMPR=7z |
| 11 | |
| 12 | ifeq ($(OS),Windows_NT) |
| 13 | COMPR=7z.exe |
| 14 | endif |
| 15 | |
| 16 | COMPR_FLAGS=a -tzip |
| 17 | |
| 18 | git_hash:=$(shell git log --format="%cd_%h" --date=short -n 1) |
| 19 | |
| 20 | archive_name=html_${git_hash}.zip |
| 21 | |
| 22 | .PHONY: all |
| 23 | all: html zip |
| 24 | |
| 25 | html: |
| 26 | doxygen Doxyfile |
| 27 | |
| 28 | zip: ${archive_name} |
| 29 | |
| 30 | ${archive_name}: html |
| 31 | "${COMPR}" ${COMPR_FLAGS} $@ $? |
| 32 | |
| 33 | .PHONY: clean |
| 34 | clean: |
| 35 | -rm html_*.zip |
| 36 | -rm -rf html |