summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/qtrubyapp/app-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/app_templates/qtrubyapp/app-Makefile')
-rw-r--r--languages/ruby/app_templates/qtrubyapp/app-Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/languages/ruby/app_templates/qtrubyapp/app-Makefile b/languages/ruby/app_templates/qtrubyapp/app-Makefile
new file mode 100644
index 00000000..88b5556e
--- /dev/null
+++ b/languages/ruby/app_templates/qtrubyapp/app-Makefile
@@ -0,0 +1,7 @@
+uis := $(wildcard *.ui)
+
+all: $(uis)
+ @for name in $^; do rbuic $$name > `echo $$name | awk -F '\\\.ui$$' '{ print $$1 }' 2> /dev/null`.rb; echo "Running rbuic on $$name"; done
+
+clean: $(uis)
+ @for name in $^; do rm -f `echo $$name | awk -F '\\\.ui$$' '{ print $$1 }' 2> /dev/null`.rb; done