Skip to content

Commit

Permalink
update makefile to share files for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangel-dev committed Mar 19, 2020
1 parent 8612526 commit e6cdeba
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version ?= 0.6.0

BUILD_PATH = /tmp/$(TOOL_NAME)/$(version)
PREFIX_BIN = $(prefix)/bin
PREFIX_TESTS = $(prefix)/share/tests
TAR_FILENAME = $(version).tar.gz
SWIFT_PACKAGE_PATH = project
BINARIES_PATH = $(BUILD_PATH)/release
Expand All @@ -23,12 +24,14 @@ BINARIES = nef\


.PHONY: install
install: build install_bin
install: build install_folders
$(foreach binary,$(BINARIES),$(shell install $(BINARIES_PATH)/$(binary) $(PREFIX_BIN)/$(binary)))
@cp -R Documentation.app $(PREFIX_TESTS)

.PHONY: install_bin
install_bin:
.PHONY: install_folders
install_folders:
@install -d "$(PREFIX_BIN)"
@install -d "$(PREFIX_TESTS)"

.PHONY: build
build: clean
Expand All @@ -37,6 +40,7 @@ build: clean
.PHONY: uninstall
uninstall:
@rm -f $(PREFIX_BIN)/$(TOOL_NAME)*
@rm -rf $(PREFIX_TESTS)

.PHONY: clean
clean:
Expand Down

0 comments on commit e6cdeba

Please sign in to comment.