Browse Source

Makefile: generate and install desktop file

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
6e6bba7e8e
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      Makefile.am

+ 12
- 1
Makefile.am View File

@ -1,3 +1,8 @@
# location of *.desktop file, usually /usr/share/applications
applicationsdir = $(datadir)/applications
applications_DATA = mconnect.desktop
bin_PROGRAMS = mconnect
noinst_PROGRAMS = test-mconn-crypt \
@ -46,8 +51,14 @@ mconn-crypt.vapi: mconn-crypt.gi
rm -f $@
vapigen --library mconn-crypt $<
# configure will expand bindir to ${exec_prefix}/bin, we want the
# whole thing, that's why mconnect.desktop is generated here and not
# in configure
do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g'
mconnect.desktop: mconnect.desktop.in
$(do_desktop_subst) < $< > $@
BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gi
BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gi mconnect.desktop
CLEANFILES = $(BUILT_SOURCES)

Loading…
Cancel
Save