-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrules.mk
More file actions
33 lines (26 loc) · 753 Bytes
/
rules.mk
File metadata and controls
33 lines (26 loc) · 753 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
include $(TOP_LEVEL_DIR)/header.mk
PATCH_INSTALL_FILES = \
bin/bam \
libexec/bam-core/bam-sh-setup \
share/bam-core/config/buildconfig.gni
.PHONY: default
default: all
@true
.PHONY: all
all:
@true
.PHONY: clean
clean:
@true
.PHONY: install
install: install-bin
@true
.PHONY: install-bin
install-bin:
@install -d $(PREFIX) $(PREFIX)/bin $(PREFIX)/libexec/bam-core $(PREFIX)/share/bam-core
@cp -fr bin/* $(PREFIX)/bin
@cp -fr libexec/* $(PREFIX)/libexec/bam-core
@cp -fr config toolchain util $(PREFIX)/share/bam-core
@cp -fr examples templates $(PREFIX)/share/bam-core
@sed -i -e 's|\@prefix\@|$(shell echo $(PREFIX) | sed 's/\([\\@\s]\)/\\\1/g')|g' $(patsubst %,$(PREFIX)/%,$(PATCH_INSTALL_FILES))
include $(TOP_LEVEL_DIR)/footer.mk