diff --git a/configure.ac b/configure.ac index 9c82018..46bd9c5 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,8 @@ AS_IF([test "x$ax_cv_curses_enhanced" != xyes], [ ]) ]) +AC_SUBST([desktopdir],['${datadir}/applications']) + AC_CONFIG_FILES([ Makefile lib/Makefile diff --git a/data/Makefile.am b/data/Makefile.am index 22a9bad..76630b0 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -26,4 +26,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. -EXTRA_DIST = README + +dist_desktop_DATA = trader.desktop + +EXTRA_DIST = \ + README \ + trader.desktop.in + + +trader.desktop: trader.desktop.in + msgfmt --desktop -d $(top_srcdir)/po --template $< -o $@