summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/menu/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-17 12:51:40 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-17 12:51:40 +0000
commit0b8d61d40d1b0be9aaa0725002d361e479099b1c (patch)
treeefd482ae2f3573ad8b8f3010768cfea3dd6af832 /perl-install/standalone/menu/Makefile
parent9d08e6057dfaa68ea41bbed5f5da1ade99ac7e29 (diff)
downloaddrakx-0b8d61d40d1b0be9aaa0725002d361e479099b1c.tar
drakx-0b8d61d40d1b0be9aaa0725002d361e479099b1c.tar.gz
drakx-0b8d61d40d1b0be9aaa0725002d361e479099b1c.tar.bz2
drakx-0b8d61d40d1b0be9aaa0725002d361e479099b1c.tar.xz
drakx-0b8d61d40d1b0be9aaa0725002d361e479099b1c.zip
move desktop menu entries out of spec and tag them as translatable
Diffstat (limited to 'perl-install/standalone/menu/Makefile')
-rw-r--r--perl-install/standalone/menu/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/perl-install/standalone/menu/Makefile b/perl-install/standalone/menu/Makefile
new file mode 100644
index 000000000..3f89602df
--- /dev/null
+++ b/perl-install/standalone/menu/Makefile
@@ -0,0 +1,23 @@
+mcc_dir = $(PREFIX)/usr/share/applications
+
+DIRECTORY_IN := $(wildcard *.directory.in)
+DIRECTORY = $(DIRECTORY_IN:.directory.in=.directory)
+
+DESKTOP_IN := $(wildcard *.desktop.in)
+DESKTOP = $(DESKTOP_IN:.desktop.in=.desktop)
+
+all: $(DIRECTORY) $(DESKTOP)
+
+clean:
+ rm -f $(DIRECTORY) $(DESKTOP)
+
+install: all
+ install -d $(mcc_dir)/desktop
+ install -m644 $(DESKTOP) $(DIRECTORY) $(mcc_dir)/desktop
+ install -d $(PREFIX)/etc/gnome-vfs-2.0/vfolders
+
+%.desktop: %.desktop.in
+ intltool-merge --utf8 ../po $< $@ -d -u -c ../po/.intltool-merge-cache
+%.directory: %.directory.in
+ intltool-merge --utf8 ../po $< $@ -d -u -c ../po/.intltool-merge-cache
+