diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-08-06 01:19:26 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-08-06 01:19:26 -0500 |
| commit | 9359300bfce8d9cf1841ceb61d3feeaf1294ae59 (patch) | |
| tree | bd56c8ae6794e584f3f42e25018d8840bb60bbfc | |
| parent | 327fa451745501cb87a1b8c98f9ba0ac418a76ac (diff) | |
edge/latest release
| -rw-r--r-- | Makefile | 26 | ||||
| -rw-r--r-- | snap/snapcraft.yaml | 20 |
2 files changed, 43 insertions, 3 deletions
@@ -1,4 +1,24 @@ -planr: - go build -o planr ./cmd/main.go +ifeq ($(PREFIX),) + PREFIX := /usr/local +endif -.PHONY: planr +ifeq ($(BINDIR),) + BINDIR := /bin +endif + +CMD := planr + +$(CMD): + go build -o $(CMD) ./cmd/main.go + +install: + mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)/ + install -D -m 755 $(CMD) $(DESTDIR)$(PREFIX)$(BINDIR)/ + +uninstall: + rm -rf $(DESTDIR)$(PREFIX)$(BINDIR)/$(CMD) + +clean: + rm -rf $(CMD) + +.PHONY: clean install uninstall $(CMD) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..1e9ff34 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,20 @@ +name: planr +base: core18 +version: '0.0.1' +summary: An open-source, distributed code grading tool for the classroom +description: | + PlanR aggregates various results from testing frameworks automating grading. It aims to provide simple and modular configuration. The configuration language can provide context and grading information to test cases. + +grade: devel +confinement: classic + +parts: + planr: + plugin: make + source: . + make-parameters: + - PREFIX=/usr + +apps: + planr: + command: usr/bin/planr |
