aboutsummaryrefslogtreecommitdiff
path: root/chinese/gcin-devel/files/patch-menu
blob: ffe2df8dd9f4eb1ec66a07f930f58ac19e4d099a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- menu/Makefile.bak	Mon Oct 30 12:44:59 2006
+++ menu/Makefile	Mon Oct 30 12:43:10 2006
@@ -10,14 +10,10 @@
 	   install gcin-setup.desktop /usr/share/applications; \
 	   install -d /usr/lib/menu; \
 	   install -m 644 $(MENUS) /usr/lib/menu; \
-	   which update-menus >& /dev/null && update-menus || exit 0; \
+	   which update-menus > /dev/null 2>&1 && update-menus || exit 0; \
 	else \
-	   install -d $(libdir)/menu; \
-	   install -m 644 $(MENUS) $(libdir)/menu; \
-	   install -d $(GCIN_SETUP_DESKTOP_rpm); \
-	   install -m 644 gcin-setup.desktop $(GCIN_SETUP_DESKTOP_rpm); \
-	   install -d $(datadir)/applications; \
-	   install -m 644 gcin-setup.desktop $(datadir)/applications; \
+	   install -d $(prefix)/share/applications; \
+	   install -m 644 $(MENUS) $(prefix)/share/applications; \
 	fi
 clean:
 	rm -f $(MENUS) *~