Debian Codegraph @

mime/Makefile.am

raw
1 # Inspired by Homebank MIME installation Makefile.am
2
3 mimedir = $(datadir)/mime-info
4 mime_DATA = mpsolve.mime
5
6 mimexmldir = $(datadir)/mime/packages
7 mimexml_DATA = mpsolve.xml
8
9 EXTRA_DIST = \
10 $(mime_DATA) \
11 $(mimexml_DATA)
12
13 ## Update mime only when system wide installation takes place
14
15 install-data-local: install-mimexmlDATA
16 if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \
17 if which update-mime-database>/dev/null 2>&1; then \
18 update-mime-database $(DESTDIR)$(datadir)/mime; \
19 fi \
20 fi
21
22 uninstall-local:
23 if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \
24 if which update-mime-database>/dev/null 2>&1; then \
25 update-mime-database $(DESTDIR)$(datadir)/mime; \
26 fi \
27 fi