1SUBDIRS = evince liblatexila ui 2 3bin_PROGRAMS = gnome-latex 4 5# --disable-since-check is used because GNOME LaTeX often depends on unstable 6# versions of GNOME libraries. 7AM_VALAFLAGS = \ 8 --disable-since-check \ 9 --pkg gtk+-3.0 \ 10 --pkg gtksourceview-4 \ 11 --pkg Tepl-5 \ 12 --pkg gspell-1 \ 13 --pkg gee-0.8 \ 14 --pkg posix \ 15 --target-glib=@GLIB_REQUIRED_VERSION@ \ 16 --vapidir liblatexila \ 17 --vapidir $(abs_builddir)/liblatexila \ 18 --pkg latexila 19 20# The valac command is always executed in the sources directory, not the build 21# directory. If $(top_srcdir) is used, it will be relative to the build directory. 22vapidir = ../vapi 23 24vala_files = \ 25 app_settings.vala \ 26 bottom_panel.vala \ 27 build_tool_dialog.vala \ 28 build_tools_preferences.vala \ 29 clean_build_files.vala \ 30 completion.vala \ 31 dialogs.vala \ 32 documents_panel.vala \ 33 document_structure.vala \ 34 document_tab.vala \ 35 document.vala \ 36 document_view.vala \ 37 encodings.vala \ 38 factory.vala \ 39 file_browser.vala \ 40 glatex_app.vala \ 41 main.vala \ 42 main_window_build_tools.vala \ 43 main_window_documents.vala \ 44 main_window_edit.vala \ 45 main_window_file.vala \ 46 main_window_structure.vala \ 47 main_window_tools.vala \ 48 main_window.vala \ 49 most_used_symbols.vala \ 50 preferences_dialog.vala \ 51 project_dialogs.vala \ 52 projects.vala \ 53 search.vala \ 54 structure_model.vala \ 55 structure.vala \ 56 symbols.vala \ 57 symbols_view.vala \ 58 tab_label.vala \ 59 utils.vala 60 61gnome_latex_SOURCES = \ 62 $(vala_files) \ 63 $(vapidir)/config.vapi 64 65# -w: silence all warnings, because we already have the valac warnings. The 66# generated C code currently triggers a lot of warnings because deprecated 67# functions are used. So by silencing the GCC warnings, we can more easily 68# scroll up the build output to see the valac warnings. 69gnome_latex_CPPFLAGS = \ 70 -I$(top_srcdir) \ 71 -I$(srcdir)/liblatexila \ 72 -I$(builddir)/liblatexila \ 73 -include config.h \ 74 -w 75 76gnome_latex_CFLAGS = \ 77 $(DEP_CFLAGS) 78 79gnome_latex_LDADD = \ 80 $(DEP_LIBS) \ 81 liblatexila/liblatexila.la 82 83# GResource 84 85glatex-resources.c: glatex.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/glatex.gresource.xml) 86 $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $(srcdir)/glatex.gresource.xml 87 88BUILT_SOURCES = glatex-resources.c 89nodist_gnome_latex_SOURCES = $(BUILT_SOURCES) 90 91EXTRA_DIST = glatex.gresource.xml 92 93CLEANFILES = \ 94 $(BUILT_SOURCES) \ 95 $(vala_files:.vala=.c) \ 96 gnome_latex_vala.stamp 97 98-include $(top_srcdir)/git.mk 99