Skip to content

Commit e6cdeba

Browse files
update makefile to share files for testing
1 parent 8612526 commit e6cdeba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version ?= 0.6.0
66

77
BUILD_PATH = /tmp/$(TOOL_NAME)/$(version)
88
PREFIX_BIN = $(prefix)/bin
9+
PREFIX_TESTS = $(prefix)/share/tests
910
TAR_FILENAME = $(version).tar.gz
1011
SWIFT_PACKAGE_PATH = project
1112
BINARIES_PATH = $(BUILD_PATH)/release
@@ -23,12 +24,14 @@ BINARIES = nef\
2324

2425

2526
.PHONY: install
26-
install: build install_bin
27+
install: build install_folders
2728
$(foreach binary,$(BINARIES),$(shell install $(BINARIES_PATH)/$(binary) $(PREFIX_BIN)/$(binary)))
29+
@cp -R Documentation.app $(PREFIX_TESTS)
2830

29-
.PHONY: install_bin
30-
install_bin:
31+
.PHONY: install_folders
32+
install_folders:
3133
@install -d "$(PREFIX_BIN)"
34+
@install -d "$(PREFIX_TESTS)"
3235

3336
.PHONY: build
3437
build: clean
@@ -37,6 +40,7 @@ build: clean
3740
.PHONY: uninstall
3841
uninstall:
3942
@rm -f $(PREFIX_BIN)/$(TOOL_NAME)*
43+
@rm -rf $(PREFIX_TESTS)
4044

4145
.PHONY: clean
4246
clean:

0 commit comments

Comments
 (0)