aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2007-08-23 17:25:42 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2007-08-23 17:25:42 +0000
commit648878eac26183e145903880ec6bbad035b6a1b6 (patch)
tree736e967c0e2c5d4cd09ad7c164944b362cb6f973 /Makefile
parent65c1889a15e29dd0d2ff21c57bdf44428faebec5 (diff)
downloadcommon-data-648878eac26183e145903880ec6bbad035b6a1b6.tar
common-data-648878eac26183e145903880ec6bbad035b6a1b6.tar.gz
common-data-648878eac26183e145903880ec6bbad035b6a1b6.tar.bz2
common-data-648878eac26183e145903880ec6bbad035b6a1b6.tar.xz
common-data-648878eac26183e145903880ec6bbad035b6a1b6.zip
New menu
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9c048a..be01fb5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,18 @@ TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
mandir=/usr/share/man
SVNROOT = svn+ssh://svn.mandriva.com/svn/soft/$(PACKAGE)
+menus: applications.menu kde-applications.menu
+
+applications.menu: menu/applications.menu.in
+ @echo -n "generating $@"
+ @sed -e 's,@MAIN_DESKTOP@,GNOME,g' -e 's,@MAIN_TOOLKIT@,GTK,g' < $? > $@
+ @echo " OK"
+
+kde-applications.menu: menu/applications.menu.in
+ @echo -n "generating $@"
+ @sed -e 's,@MAIN_DESKTOP@,KDE,g' -e 's,@MAIN_TOOLKIT@,Qt,g' < $? > $@
+ @echo " OK"
+
checktag:
@if [ "x$(VERSION)" == "x" -o "x$(RELEASE)" = "x" ]; then \
echo usage is "make VERSION=version_number RELEASE=release_number dist" ; \
@@ -12,6 +24,7 @@ checktag:
clean:
find . -type d -name '.xvpics' -o -name '*~' |xargs rm -rf
+ rm -f applications.menu kde-applications.menu
# rules to build a test rpm