updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gmount / Makefile
blob03e020f2b6cf11afa2163a218452cb7bd9b33c39
1 PROJECT = gmount
2 BIN = $(PROJECT).exe
4 PREFIX = /usr
7 all: $(BIN)
9 $(BIN):
10 mcs ArgumentCollector.cs AssemblyInfo.cs Log.cs Main.cs MainWindow.cs \
11 aboutData.cs gtk-gui/MainWindow.cs gtk-gui/generated.cs \
12 -pkg:glade-sharp-2.0 -r:Mono.Posix \
13 -out:$(BIN)
15 install: all
16 install -Dm755 $(BIN) $(DESTDIR)$(PREFIX)/share/$(PROJECT)/$(BIN)
17 install -Dm644 icon.png $(DESTDIR)$(PREFIX)/share/pixmaps/$(PROJECT).png
19 mkdir -p $(DESTDIR)$(PREFIX)/bin
21 echo "#!/bin/bash" > $(DESTDIR)$(PREFIX)/bin/$(PROJECT)
22 echo "exec mono $(PREFIX)/share/$(PROJECT)/$(BIN)" \
23 >> $(DESTDIR)$(PREFIX)/bin/$(PROJECT)
25 chmod 755 $(DESTDIR)$(PREFIX)/bin/$(PROJECT)
27 clean:
28 rm -f $(BIN)