aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2007-08-24 17:55:03 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2007-08-24 17:55:03 +0000
commitabf53fc874b1417c6170375f915421428c3aca4f (patch)
tree56039ee3a152b9bdd246d2219ea314be5ba098f9 /Makefile
parentdd901bbad93037f06477f55cae420ce3a4025c42 (diff)
downloadcommon-data-abf53fc874b1417c6170375f915421428c3aca4f.tar
common-data-abf53fc874b1417c6170375f915421428c3aca4f.tar.gz
common-data-abf53fc874b1417c6170375f915421428c3aca4f.tar.bz2
common-data-abf53fc874b1417c6170375f915421428c3aca4f.tar.xz
common-data-abf53fc874b1417c6170375f915421428c3aca4f.zip
Validate menu files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 536caa0..f3da13a 100644
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,19 @@ 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' < $? > $@
+menu/validated-menu: menu/applications.menu.in
+ xmllint --noout --dtdvalid menu/menu.dtd $?
+
+applications.menu: menu/validated-menu
+ @echo -n "generating $@ "
+ @sed -e 's,@MAIN_DESKTOP@,GNOME,g' -e 's,@MAIN_TOOLKIT@,GTK,g' < menu/applications.menu.in > $@
+ @xmllint --noout --dtdvalid menu/menu.dtd $@
@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' < $? > $@
+kde-applications.menu: menu/validated-menu
+ @echo -n "generating $@ "
+ @sed -e 's,@MAIN_DESKTOP@,KDE,g' -e 's,@MAIN_TOOLKIT@,Qt,g' < menu/applications.menu.in > $@
+ @xmllint --noout --dtdvalid menu/menu.dtd $@
@echo " OK"
checktag:
@@ -28,7 +33,7 @@ clean:
# rules to build a test rpm
-localdist: cleandist dir localcopy tar
+localdist: menus cleandist dir localcopy tar
cleandist: checktag
rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
@@ -48,7 +53,7 @@ tar: checktag
# rules to build a distributable rpm
-dist: checktag cleandist svntag export tar
+dist: menus checktag cleandist svntag export tar
export: checktag