SOURCES = \ ./yTMain.cs \ ./yTMessageBox.cs \ ./yTProvider.cs \ ./yTService.cs \ ./yTToolWin.cs \ ./yTUserPrefs.cs \ ./yTLangSelector.cs \ ./yTTrayIcon.cs \ ./yTLargeTranslator.cs \ ./AssemblyInfo.cs RESOURCES = \ ./yt.glade \ ./yTicon.png \ ./yTLogo.png \ ./ar.png \ ./bg.png \ ./ca.png \ ./cs.png \ ./da.png \ ./de.png \ ./el.png \ ./en.png \ ./es.png \ ./fi.png \ ./fr.png \ ./hi.png \ ./hr.png \ ./id.png \ ./it.png \ ./iw.png \ ./ja.png \ ./ko.png \ ./lv.png \ ./lt.png \ ./nl.png \ ./no.png \ ./pl.png \ ./pt.png \ ./ro.png \ ./ru.png \ ./sk.png \ ./sl.png \ ./sr.png \ ./sv.png \ ./tl.png \ ./uk.png \ ./vi.png \ ./zh.png RESOURCES_BUILD = $(foreach res,$(RESOURCES), $(addprefix -resource:,$(res)),$(notdir $(res))) PKG_REFERENCES = \ gtk-sharp-2.0 \ glade-sharp-2.0 PKG_REFERENCES_BUILD = $(addprefix -pkg:, $(PKG_REFERENCES)) PKG_REFERENCES_CHECK = $(addsuffix .pkgcheck, $(PKG_REFERENCES)) MCS_OPTIONS = all: youtranslate.exe youtranslate.exe: $(SOURCES) $(RESOURCES) mcs $(MCS_OPTIONS) -target:exe -out:"youtranslate.exe" $(RESOURCES_BUILD) $(PKG_REFERENCES_BUILD) $(SOURCES) \ && cp "youtranslate.exe" ./build/. clean: rm -f youtranslate.exe depcheck: PKG_depcheck PKG_depcheck: $(PKG_REFERENCES_CHECK) %.pkgcheck: @echo -n Checking for package $(subst .pkgcheck,,$@)... @if pkg-config --libs $(subst .pkgcheck,,$@) &> /dev/null; then \ echo yes; \ else \ echo no; \ exit 1; \ fi