Skip to content

Commit

Permalink
use sols makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Jones committed Dec 12, 2017
1 parent a8a244a commit 5f8194a
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
# FLAGS will be passed to both the C and C++ compiler
FLAGS +=
CFLAGS +=
CXXFLAGS +=

# Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine.
LDFLAGS +=

# Add .cpp and .c files to the build
SOURCES = $(wildcard src/*.cpp)


# Must include the VCV plugin Makefile framework
include ../../plugin.mk


# Convenience target for including files in the distributable release
DIST_NAME = RJModules
.PHONY: dist
dist: all
mkdir -p dist/RJModules
cp LICENSE* dist/RJModules/
cp $(TARGET) dist/RJModules/
cp -R res dist/RJModules/
ifndef VERSION
$(error VERSION must be defined when making distributables)
endif
mkdir -p dist/$(DIST_NAME)
cp LICENSE* README* dist/$(DIST_NAME)/
cp $(TARGET) dist/$(DIST_NAME)/
cp -R res dist/$(DIST_NAME)/
cd dist && zip -5 -r $(DIST_NAME)-$(VERSION)-$(ARCH).zip $(DIST_NAME)<Paste>

0 comments on commit 5f8194a

Please sign in to comment.