-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
37 lines (28 loc) · 987 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright (c) Eclipse Arrowhead Project
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# SPDX-License-Identifier: EPL-2.0
export ASSEMBLY_PATH := $(abspath distribution)
ASSEMBLY_DOCUMENTS := $(wildcard $(ASSEMBLY_PATH)/*.pdf)
ASSEMBLY_PREFIX := eclipse-arrowhead-core-documentation-
ASSEMBLY_VERSION := $(subst /,-,$(shell git describe --always))
ASSEMBLY_NAME := $(ASSEMBLY_PREFIX)$(ASSEMBLY_VERSION)
MKDIR := mkdir
RM := rm -Rf
ZIP := zip
default: assemble
$(ASSEMBLY_PATH):
$(MKDIR) $(ASSEMBLY_PATH)
$(ASSEMBLY_NAME).zip:
$(ZIP) -jr $@ $(ASSEMBLY_PATH)
assemble: $(ASSEMBLY_PATH)
cd documents && $(MAKE) assemble
$(MAKE) $(ASSEMBLY_NAME).zip
clean:
cd documents && $(MAKE) clean
$(RM) $(ASSEMBLY_PATH)
$(RM) $(ASSEMBLY_PREFIX)*.zip
.PHONY: $(ASSEMBLY_NAME).zip assemble clean