aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6374c90..d86e316 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -78,6 +78,9 @@ CFLAGS += $(call ac_inc_cflags,XENSTORE LIBVIRT AVAHI GTK_VNC)
CFLAGS += $(shell test "$(pkglst)" != "" && pkg-config --cflags $(pkglst))
LDLIBS += $(shell test "$(pkglst)" != "" && pkg-config --libs $(pkglst))
+# desktop files
+DESKTOP := $(wildcard $(patsubst %,%.desktop,$(TARGETS)))
+
########################################################################
# rules
@@ -85,9 +88,10 @@ LDLIBS += $(shell test "$(pkglst)" != "" && pkg-config --libs $(pkglst))
build: $(TARGETS) xenscreenrc
install: build
- $(INSTALL_DIR) -d $(DESTDIR)/etc/xen $(bindir)
+ $(INSTALL_DIR) -d $(DESTDIR)/etc/xen $(bindir) $(appdir)
$(INSTALL_DATA) xenscreenrc $(DESTDIR)/etc/xen
$(INSTALL_BINARY) -s $(TARGETS) $(bindir)
+ $(INSTALL_DATA) $(DESKTOP) $(appdir)
clean:
-rm -f *.o *~ $(depfiles)