summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-05-25 18:43:12 +0200
committerxengineering <me@xengineering.eu>2023-05-25 18:44:11 +0200
commit8cb0f81d770f01ed06adb71561463418c7fec82a (patch)
treebe864e27d6118d479288fba0e63f4b4ac7b9bfc1 /Makefile
parent191acba6587b766770cc2bf1d3ff2bc699cb668d (diff)
downloadlimox-8cb0f81d770f01ed06adb71561463418c7fec82a.tar
limox-8cb0f81d770f01ed06adb71561463418c7fec82a.tar.zst
limox-8cb0f81d770f01ed06adb71561463418c7fec82a.zip
Implement first unit test and integrate into build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2fa55ae..c6e9352 100644
--- a/Makefile
+++ b/Makefile
@@ -12,19 +12,19 @@ DESKTOP=$(BUILDDIR)/$(DESKTOP_SRC)
DESKTOP_INSTALL=$(INSTALLATION)/share/applications/$(DESKTOP_SRC)
-all: $(LIMOX) $(DESKTOP)
+all: $(LIMOX) $(DESKTOP) tests
$(BUILDDIR):
mkdir $@
-$(LIMOX): $(BUILDDIR)
+$(LIMOX): $(BUILDDIR) tests
go build -o $@ $(LIMOX_GO_PACKAGE)
$(DESKTOP): $(BUILDDIR)
cp $(DESKTOP_SRC) $@
-.PHONY: clean debug install
+.PHONY: clean debug install tests
clean:
rm -rf $(BUILDDIR)
@@ -35,3 +35,6 @@ debug:
install: $(LIMOX)
install -Dm 755 $(LIMOX) $(LIMOX_INSTALL)
install -Dm 644 $(DESKTOP) $(DESKTOP_INSTALL)
+
+tests:
+ go test ./...