You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3KB

  1. SLUG = DHE-Modules
  2. VERSION = 0.6.4
  3. RACK_DIR ?= ../..
  4. FLAGS += -I./plugin/include
  5. CFLAGS +=
  6. CXXFLAGS +=
  7. LDFLAGS +=
  8. SOURCES = $(wildcard plugin/src/*.cpp)
  9. DISTRIBUTABLES += LICENSE.txt svg
  10. include $(RACK_DIR)/plugin.mk
  11. # Above this line: Standard plugin build stuff
  12. ########################################################################
  13. # Below this line: Targets for Dale to build the gui and run Rack
  14. DEV_INSTALL_DIR = .dev
  15. DEV_PLUGIN_DIR = $(DEV_INSTALL_DIR)/plugins
  16. $(DEV_INSTALL_DIR) $(DEV_PLUGIN_DIR):
  17. mkdir -p $@
  18. $(DEV_PLUGIN_DIR)/Fundamental: $(DEV_PLUGIN_DIR)
  19. cp -r $(RACK_USER_DIR)/plugins/Fundamental $(DEV_PLUGIN_DIR)
  20. dev: dist $(DEV_PLUGIN_DIR) $(DEV_PLUGIN_DIR)/Fundamental
  21. cp dist/$(SLUG)-$(VERSION)-$(ARCH).zip $(DEV_PLUGIN_DIR)
  22. debug: dev
  23. /Applications/Rack.app/Contents/MacOS/Rack -d -g /Applications/Rack.app/Contents/Resources -l $(realpath $(DEV_INSTALL_DIR))
  24. run: dev
  25. /Applications/Rack.app/Contents/MacOS/Rack -g /Applications/Rack.app/Contents/Resources -l $(realpath $(DEV_INSTALL_DIR))
  26. tidy:
  27. find plugin/src plugin/include -name *.h -o -name *.cpp | xargs clang-format -i
  28. gui:
  29. cd gui && rake install
  30. clobber: clean uninstall
  31. cd gui && rake clobber
  32. fresh: clean all
  33. uninstall:
  34. rm -rf $(DEV_INSTALL_DIR)
  35. .PHONY: clean clobber fresh gui tidy uninstall