1desktopdir = $(datadir)/applications
2mimedir = $(datadir)/mime/packages
3pixmapsdir = $(pkgdatadir)/pixmaps
4appdatadir = $(datadir)/appdata
5desktop_in_files = tilp.desktop.in
6desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
7mime_files = tilp.xml
8mime_DATA = tilp.xml
9appdata_files = tilp.appdata.xml
10appdata_DATA = tilp.appdata.xml
11
12EXTRA_DIST = $(desktop_in_files) $(mime_files) $(appdata_files) README.txt
13
14CLEANFILES = $(desktop_in_files:.desktop.in=.desktop)
15
16tilp.desktop:
17	cat $(srcdir)/$@.in | sed -e "s=\@bindir\@=${bindir}=" | sed -e "s=\@pixmapsdir\@=${pixmapsdir}=" > $@
18