-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.basic
45 lines (37 loc) · 1.2 KB
/
Makefile.basic
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
38
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2021-2024 Stichting Open Electronics Lab
#
# Makefile cheat-sheet:
#
# $@ : target label
# $< : the first prerequisite after the colon
# $^ : all of the prerequisite files
# $* : wildcard matched part
#
# Target-specific Variable syntax:
# https://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html
#
# patsubst : $(patsubst pattern,replacement,text)
# https://www.gnu.org/software/make/manual/html_node/Text-Functions.html
# call : $(call func,param1,param2,...)
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html
# define :
# https://www.gnu.org/software/make/manual/html_node/Multi_002dLine.html
SHELL=/bin/bash
ADFICE_VERSION=0.0.0
default: check
check: thirdparty check-unit
@echo "SUCCESS $@"
thirdparty: node_modules/ws/lib/websocket-server.js \
static/thirdparty/showdown.min.js \
static/thirdparty/showdown.min.js.map
@echo "$@ complete"
check-unit: adfice-dbsetup
npm test adfice
@echo "SUCCESS $@"
adfice-dbsetup: npmsetup
bin/db-create-tables.sh db-scripts.env
bin/load-synthetic-data.sh db-scripts.env
@echo "$@ complete"
npmsetup: node_modules/ws/lib/websocket-server.js
@echo "$@ complete"