]> sigrok.org Git - sigrok-meter.git/blobdiff - Makefile
Move menu to left side, allow acquisition to be paused.
[sigrok-meter.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..e5fb32c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,38 @@
+##
+## This file is part of the sigrok-meter project.
+##
+## Copyright (C) 2015 Jens Steinhauser <jens.steinhauser@gmail.com>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+##
+
+ifneq ($(MAKECMDGOALS),clean)
+  ifeq   (0,$(shell which pyrcc4     >/dev/null 2>&1; echo $$?))
+    RCC = pyrcc4
+  else
+    ifeq (0,$(shell which pyside-rcc >/dev/null 2>&1; echo $$?))
+      RCC = pyside-rcc
+    else
+      $(error "resource compiler not found")
+    endif
+  endif
+endif
+
+resources.py: resources.qrc
+       $(RCC) -py3 -o $@ $<
+
+.PHONY: clean
+clean:
+       rm -f resources.py