summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin Wallace <kevin@pentabarf.net>2026-02-27 00:44:08 -0800
committerKevin Wallace <kevin@pentabarf.net>2026-02-27 00:56:16 -0800
commit5840192fecbd9f1398e46f03f30729f70e37224a (patch)
treedf3989089035c78004a2033536bfbb91a3ca0566 /Makefile
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..354ad49
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+export GOOS=linux
+export GOARCH=arm
+export GOARM=7
+
+USB_ROOT=/Volumes/MP_SD
+
+GOSOURCES:=$(shell find . -name *.go)
+
+all: bin/ipp
+
+clean:
+ rm -r bin
+
+bin/%: ${GOSOURCES}
+ mkdir -p bin
+ go build -o $@ ./cmd/$*
+
+usb: autorun.sh bin/ipp
+ install autorun.sh ${USB_ROOT}/
+ install -d ${USB_ROOT}/bin/
+ install bin/ipp ${USB_ROOT}/bin/