diff options
author | Frederic Crozat <fcrozat@mandriva.com> | 2007-08-24 17:55:03 +0000 |
---|---|---|
committer | Frederic Crozat <fcrozat@mandriva.com> | 2007-08-24 17:55:03 +0000 |
commit | abf53fc874b1417c6170375f915421428c3aca4f (patch) | |
tree | 56039ee3a152b9bdd246d2219ea314be5ba098f9 /Makefile | |
parent | dd901bbad93037f06477f55cae420ce3a4025c42 (diff) | |
download | common-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-- | Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -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 |