1EXTRA_DIST = $(desktop_in_files) gchemtable.appdata.xml.in 2 3CLEANFILES = $(desktop_DATA) gchemtable.desktop gchemtable.appdata.xml 4 5MAINTAINERCLEANFILES = Makefile.in gchemtable.desktop.in 6 7DEPS = $(top_builddir)/libs/gcugtk/libgcugtk-@GCU_API_VER@.la 8LIBS = $(top_builddir)/libs/gcugtk/libgcugtk-@GCU_API_VER@.la\ 9 $(top_builddir)/libs/gcu/libgcu-@GCU_API_VER@.la\ 10 $(goffice_LIBS) \ 11 $(gsf_LIBS) \ 12 $(gtk_LIBS) \ 13 -lGL 14AM_CPPFLAGS = \ 15 -I$(top_srcdir) -I$(top_srcdir)/libs \ 16 $(goffice_CFLAGS) \ 17 $(GCU_CFLAGS) 18DEFS += -DDATADIR=\"$(datadir)\" \ 19 -DLOCALEDIR=\"$(localedir)\" \ 20 -DUIDIR=\"$(datadir)/gchemutils/@GCU_API_VER@/ui/table\" 21 22bin_PROGRAMS = gchemtable-@GCU_API_VER@ 23 24gchemtable_@GCU_API_VER@_SOURCES = \ 25 gchemtable-main.cc \ 26 gchemtable-app.cc \ 27 gchemtable-app.h \ 28 gchemtable-elt.cc \ 29 gchemtable-elt.h \ 30 gchemtable-curve.cc \ 31 gchemtable-curve.h \ 32 gchemtable-data-allocator.cc \ 33 gchemtable-data-allocator.h \ 34 gchemtable-graph-editor.cc \ 35 gchemtable-graph-editor.h \ 36 gchemtable-data.cc \ 37 gchemtable-data.h 38 39desktop_in_files = gchemtable.desktop.in 40 41gchemtable-@GCU_API_VER@.desktop: gchemtable.desktop 42 cp $< $@ 43 44desktopdir=$(datadir)/applications 45desktop_DATA = gchemtable-@GCU_API_VER@.desktop 46@INTLTOOL_DESKTOP_RULE@ 47 48appdatadir = $(datadir)/appdata 49appdata_DATA = gchemtable.appdata.xml 50gchemtable.appdata.xml: gchemtable.appdata.xml.in 51 cp $< $@ 52 53install-exec-hook: 54 cd $(DESTDIR)$(bindir) && \ 55 if [ -x gchemtable@STABILITY@ ]; then \ 56 rm -f gchemtable@STABILITY@; \ 57 fi && \ 58 $(LN_S) gchemtable-@GCU_API_VER@ gchemtable@STABILITY@ 59uninstall-hook: 60 if [ -x $(DESTDIR)/$(bindir)/gchemtable@STABILITY@ ]; then \ 61 rm -f $(DESTDIR)/$(bindir)/gchemtable@STABILITY@; \ 62 fi 63