-SUBDIRS= common daemon include lib clients config po autopackage doc contrib
+SUBDIRS= common daemon include lib clients config po autopackage doc contrib share
ACLOCAL_AMFLAGS = -I m4
SUBDIRS=gtk2 tty gnome-trans-applet gaim gui-shell
-EXTRA_DIST=hellodolda.png dolda-icon.xpm
-
-iconsdir = $(datadir)/pixmaps
-icons_DATA = hellodolda.png
+EXTRA_DIST=dolda-icon.xpm
noinst_PROGRAMS=test
if CLI_GTK2
bin_PROGRAMS=dolcon
-if !GUISHELL
-app_DATA=dolcon.desktop
-endif
endif
dolcon_SOURCES= dolcon.c \
progressbar.c \
progressbar.h
-EXTRA_DIST=mainwnd.desc inpdialog.desc pref.desc reslist.desc dolcon.desktop
+EXTRA_DIST=mainwnd.desc inpdialog.desc pref.desc reslist.desc
BUILT_SOURCES= mainwnd.gtk inpdialog.gtk pref.gtk reslist.gtk
| $(top_srcdir)/common/makegdesc -h "$${basename}.gtkh" >$@
mainwnd.desc: ../../config.h
-
-appdir=$(datadir)/applications
if GUISHELL
bin_PROGRAMS=dolcon-launch doldacond-shell
-app_DATA=dolcon.desktop
endif
dolcon_launch_SOURCES=launch.c
doldacond_shell_SOURCES=dsh.c
-EXTRA_DIST=dsh-start.desc dsh-menu.desc dolcon.desktop
+EXTRA_DIST=dsh-start.desc dsh-menu.desc
BUILT_SOURCES=dsh-start.gtk dsh-menu.gtk
dsh.c: dsh-start.gtk dsh-menu.gtk
basename="$${target%.gtk}"; \
cpp $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $< \
| $(top_srcdir)/common/makegdesc -h "$${basename}.gtkh" >$@
-
-appdir=$(datadir)/applications
config/cmd/Makefile
config/util/Makefile
contrib/Makefile
+share/Makefile
autopackage/doldacond.apspec
autopackage/dolcon.apspec
autopackage/dcuilib.apspec
--- /dev/null
+appdir=$(datadir)/applications
+iconsdir=$(datadir)/icons/hicolor/48x48/apps
+
+icons_DATA=
+
+if GUISHELL
+realdesktop=dolcon-shell.desktop
+icons_DATA+=dolcon.png
+else
+if CLI_GTK2
+realdesktop=dolcon-gtk.desktop
+icons_DATA+=dolcon.png
+else
+realdesktop=none
+endif
+endif
+
+EXTRA_DIST=hellodolda.png dolda-icon.png dolcon-gtk.desktop dolcon-shell.desktop
+
+install-data-local:
+ if [ "$$realdesktop" != none ]; then \
+ $(mkinstalldirs) $(DESTDIR)$(appdir); \
+ $(INSTALL_DATA) $(srcdir)/$(realdesktop) $(DESTDIR)$(appdir)/dolcon.desktop; \
+ fi
Categories=Network
Type=Application
Terminal=false
-Icon=hellodolda.png
+Icon=dolcon
Exec=dolcon
Name=Dolda Connect
Categories=Network
Type=Application
Terminal=false
-Icon=hellodolda.png
+Icon=dolcon
Exec=dolcon-launch
Name=Dolda Connect