aboutsummaryrefslogblamecommitdiffstats
path: root/data/Makefile.am
blob: 23f8c01da4a86594103342b52bcc158b18d2e3e3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                               

                                                      
                       
 
                              

                                           
                    
 
                              
                          
 
                  
 
                                              








                                                                                                       

     
                         
 
                                                                        


                      








                                                                                                         





                                                             
                                                        


                           
                                                           

     





                                                 
desktopdir = $(datadir)/gnome/apps/Applications
desktop_in_file = evolution.desktop.in
desktop_file = $(desktop_in_file:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

keysdir = $(datadir)/mime-info
keys_in_file = evolution.keys.in
keys_file = $(keys_in_file:.keys.in=.keys) 
@INTLTOOL_KEYS_RULE@

mimedir = $(datadir)/mime-info
mime_file = evolution.mime

if HAVE_KDE_APPLNK

kdedesktopdir = $(KDE_APPLNK_DIR)/Applications
kdedesktop_file = $(desktop_in_file:.desktop.in=.desktop)

install-kde-applnk:
    $(INSTALL_DATA) $(kdedesktop_file) \
                $(DESTDIR)$(kdedesktopdir)/$(kdedesktop_file:.desktop=-$(BASE_VERSION).desktop)
else

install-kde-applnk:

endif

noinst_MANS = evolution.1

EXTRA_DIST = $(desktop_in_file) $(keys_in_file) $(mime_DATA) $(man_MANS)

SUBDIRS = cde_app_root

install-data-local: install-kde-applnk
    $(mkinstalldirs) $(DESTDIR)$(desktopdir);                           \
    $(INSTALL_DATA) $(desktop_file)                                 \
            $(DESTDIR)$(desktopdir)/$(desktop_file:.desktop=-$(BASE_VERSION).desktop) ; \
    $(mkinstalldirs) $(DESTDIR)$(keysdir);                              \
    $(INSTALL_DATA) $(keys_file) $(DESTDIR)$(keysdir)/$(keys_file:.keys=-$(BASE_VERSION).keys) ;    \
    $(mkinstalldirs) $(DESTDIR)$(mimedir);                              \
    $(INSTALL_DATA) $(mime_file) $(DESTDIR)$(mimedir)/$(mime_file:.mime=-$(BASE_VERSION).mime) ;

# CDE Stuff

if HAVE_DTAPPINTEGRATE

# This installs Evolution into the Application Manager on CDE
dtappintegrate:
    $(DTAPPINTEGRATE) -s $(privdatadir)/cde_app_root

# ...And this uninstalls it
dtappunintegrate:
    $(DTAPPINTEGRATE) -u -s $(privdatadir)/cde_app_root

endif

EXTRA_DIST =                    \
    $(desktop_in_file)          \
    $(mime_file)                \
    $(keys_in_file)