Fix the build and install rules for man pages with SQL section != 7
Fix the build and install rules for man pages with SQL section != 7

The previous coding failed in various scenarios possibly including vpath
builds and doing make install without preceding make all.

jmcatamney/gpdb,lisakowen/gpdb,greenplum-db/gpdb,adam8157/gpdb,arcivanov/postgres-xl,lisakowen/gpdb,xinzweb/gpdb,50wu/gpdb,adam8157/gpdb,zeroae/postgres-xl,zeroae/postgres-xl,kmjungersen/PostgresXL,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,arcivanov/postgres-xl,ovr/postgres-xl,50wu/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,oberstet/postgres-xl,adam8157/gpdb,tpostgres-projects/tPostgres,pavanvd/postgres-xl,kmjungersen/PostgresXL,snaga/postgres-xl,50wu/gpdb,Postgres-XL/Postgres-XL,50wu/gpdb,ashwinstar/gpdb,50wu/gpdb,techdragon/Postgres-XL,postmind-net/postgres-xl,xinzweb/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,ovr/postgres-xl,postmind-net/postgres-xl,kmjungersen/PostgresXL,yazun/postgres-xl,yazun/postgres-xl,arcivanov/postgres-xl,jmcatamney/gpdb,kmjungersen/PostgresXL,ashwinstar/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,lisakowen/gpdb,xinzweb/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,tpostgres-projects/tPostgres,oberstet/postgres-xl,snaga/postgres-xl,greenplum-db/gpdb,adam8157/gpdb,50wu/gpdb,snaga/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,postmind-net/postgres-xl,arcivanov/postgres-xl,yazun/postgres-xl,postmind-net/postgres-xl,lisakowen/gpdb,xinzweb/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,ashwinstar/gpdb,50wu/gpdb,zeroae/postgres-xl,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,xinzweb/gpdb,adam8157/gpdb,snaga/postgres-xl,oberstet/postgres-xl,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,ashwinstar/gpdb,tpostgres-projects/tPostgres,lisakowen/gpdb,zeroae/postgres-xl,yazun/postgres-xl,yazun/postgres-xl,Postgres-XL/Postgres-XL,xinzweb/gpdb,ovr/postgres-xl,arcivanov/postgres-xl,snaga/postgres-xl,lisakowen/gpdb,postmind-net/postgres-xl,lisakowen/gpdb,oberstet/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,adam8157/gpdb,xinzweb/gpdb,50wu/gpdb,zeroae/postgres-xl,Postgres-XL/Postgres-XL,greenplum-db/gpdb,arcivanov/postgres-xl,greenplum-db/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,jmcatamney/gpdb,ovr/postgres-xl