summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8a7381f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright(c) 2019 Bjørn Mork <bjorn@mork.no>
+
+FILES=version opt.local
+
+all: opt.squashfs
+
+version: dcs8000lh-configure.py
+ sed -ne 's/"//g' -e 's/^VERSION *= *//p' dcs8000lh-configure.py >$@
+
+opt.squashfs: $(FILES)
+ mksquashfs $(FILES) $@ -all-root -comp xz