Redis-to-HTTP proxy https://rpjios.com
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.
 
 
 

28 lines
529 B

  1. BUILDDIR=build
  2. PLUGINBUILDDIR=$(BUILDDIR)/plugins
  3. PLUGINBUILDER=./scripts/build-plugin.sh
  4. BINARY=$(BUILDDIR)/rhp
  5. GO=/usr/local/go/bin/go
  6. GOOPTS=
  7. SRCS=main.go types.go
  8. all: clean $(BINARY) rpjios-plugin
  9. debug: GOOPTS += -race
  10. debug: all
  11. rpjios-plugin:
  12. BUILD_PLUGIN_OUTDIR="$(PLUGINBUILDDIR)" GOOPTS=$(GOOPTS) $(PLUGINBUILDER) plugins/rpjios
  13. $(BINARY): $(SRCS)
  14. $(GO) fmt
  15. $(GO) build -o $(BINARY) $(GOOPTS) $(SRCS)
  16. run: debug rpjios-plugin
  17. ./$(BINARY) -listen 0.0.0.0
  18. .PHONY: clean
  19. clean:
  20. rm -fr $(BUILDDIR)
  21. $(GO) clean