summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/qtruby/app-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/app_templates/qtruby/app-Makefile')
-rw-r--r--languages/ruby/app_templates/qtruby/app-Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/languages/ruby/app_templates/qtruby/app-Makefile b/languages/ruby/app_templates/qtruby/app-Makefile
new file mode 100644
index 00000000..13da2847
--- /dev/null
+++ b/languages/ruby/app_templates/qtruby/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