summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/uicsharp/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/uicsharp/Makefile.am')
-rw-r--r--qtsharp/src/uicsharp/Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/qtsharp/src/uicsharp/Makefile.am b/qtsharp/src/uicsharp/Makefile.am
new file mode 100644
index 00000000..ac42d99c
--- /dev/null
+++ b/qtsharp/src/uicsharp/Makefile.am
@@ -0,0 +1,21 @@
+all: uicsharp.exe
+
+uicsharp.exe: $(wildcard *.cs)
+ csant -D$(CSC_NAME)=$(CSC) -C $(CSC_NAME)
+ chmod 0755 $@
+
+clean:
+ -rm uicsharp.exe
+
+distclean: clean
+
+install: uicsharp.exe
+ -$(MAKE) uninstall
+ -mkdir $(bindir)
+ install -o root -g root -m 0755 uicsharp.exe $(bindir)/uicsharp.exe
+ ln -s $(bindir)/uicsharp.exe $(bindir)/uicsharp
+
+uninstall:
+ -rm -rf $(bindir)/uicsharp.exe $(bindir)/uicsharp
+
+.PHONY: all clean install uninstall