forked from clearlinux/common
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 703 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 703 Bytes
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
all:
clean:
proper:
install:
if [ ! -f ../../Makefile ]; then echo "include projects/common/Makefile.toplevel" > ../../Makefile; fi
ifdef CLEAR_VER
BASE_URL := https://cdn.download.clearlinux.org/releases/${CLEAR_VER}/clear
else
BASE_URL := https://cdn.download.clearlinux.org/current
endif
update:
curl -f -o packages ${BASE_URL}/source/package-sources
cut -f1 packages | LC_ALL=C sort > packages.new && mv packages.new packages
.PHONY: spdx
spdx:
JSON=$$(mktemp); \
trap "rm $$JSON" EXIT; \
curl -f -S -s https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json > $$JSON || exit 1; \
jq -r '.licenses[] | .licenseId' < $$JSON | LC_COLLATE=C sort > licenses-spdx