-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (30 loc) · 944 Bytes
/
makefile
File metadata and controls
45 lines (30 loc) · 944 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ifeq ($(INSTALLPATH),)
INSTALLABSPATH := $(realpath ./.)/install
else
$(shell (mkdir -p "$(INSTALLPATH)"))
INSTALLABSPATH := $(realpath $(INSTALLPATH))
endif
TOPTARGETS := all clean install
SUBDIRS := Debug Release
CONFIG := Debug
CROSSPREFIX :=
include version.mk
$(TOPTARGETS): $(CONFIG)
$(CONFIG):
$(MAKE) -C $@ $(MAKECMDGOALS) INSTALLPATH="$(INSTALLABSPATH)"
Release:
$(MAKE) -C Release $(MAKECMDGOALS) INSTALLPATH="$(INSTALLABSPATH)"
install: install-include install-examples install-scripts
install-include:
mkdir -p "$(INSTALLABSPATH)/include"
cp -rp include/dqr.hpp "$(INSTALLABSPATH)/include"
install-examples:
mkdir -p "$(INSTALLABSPATH)"
cp -rp examples "$(INSTALLABSPATH)"
install-scripts:
mkdir -p "$(INSTALLABSPATH)"
cp -rp scripts "$(INSTALLABSPATH)"
clean clean-all:
$(MAKE) -C Debug clean
$(MAKE) -C Release clean
.PHONY: $(TOPTARGETS) $(CONFIG) clean-all Release install clean