-?package(matita):needs="X11" section="Applications/Science"\
+?package(matita):needs="X11" section="Applications/Mathematics"\
   title="Matita" \
   longtitle="Matita interactive theorem prover" \
   command="/usr/bin/matita" \
 
        # generate manpages
        mkdir -p $(DEB_DESTDIR)/usr/share/man/man1/
        MATITA_RT_BASE_DIR=debian/tmp/usr/share/matita/ \
-       help2man --name="Matita interative theorem prover" -N \
-               $(DEB_DESTDIR)/usr/share/matita/matita \
-               | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matita.1.gz
-       MATITA_RT_BASE_DIR=debian/tmp/usr/share/matita/ \
        help2man --name="Matita interative theorem prover - batch compiler" -N \
                $(DEB_DESTDIR)/usr/share/matita/matitac \
                | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matitac.1.gz
        help2man --name="Matita interative theorem prover - dependency analyzer" -N \
                $(DEB_DESTDIR)/usr/share/matita/matitadep \
                | gzip -9 > $(DEB_DESTDIR)/usr/share/man/man1/matitadep.1.gz
-       if [ -e  $(DEB_DESTDIR)/usr/share/matita/matita.opt ]; then\
-               for P in  $(DEB_DESTDIR)/usr/share/matita/*.opt; do\
-                       ln -s /usr/share/man/man1/`basename $$P .opt`.1.gz \
+       if [ -e  $(DEB_DESTDIR)/usr/share/matita/matitac.opt ]; then\
+               ln -s /usr/share/man/man1/matitac.1.gz \
                        $(DEB_DESTDIR)/usr/share/man/man1/`basename $$P`.1.gz;\
-               done;\
        fi
        # install .opt .byte (symlinks are installed with .install
        mkdir -p debian/matita/usr/bin/