# Copyright 2008, Secure Endpoints Inc.
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
#   this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright notice,
#   this list of conditions and the following disclaimer in the documentation
#   and/or other materials provided with the distribution.
# - Neither the name of Secure Endpoints Inc. nor the names of its contributors 
#   may be used to endorse or promote products derived from this software without
#   specific prior written permission from Secure Endpoints Inc..
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

!INCLUDE ..\..\src\config\NTMakefile.$(SYS_NAME)

PODS = \
        pod1\afs.pod                   \
        pod1\afsmonitor.pod            \
        pod1\aklog.pod                 \
        pod1\cmdebug.pod               \
        pod1\afs_compile_et.pod        \
        pod1\copyauth.pod              \
        pod1\dlog.pod                  \
        pod1\fs.pod                    \
        pod1\fs_apropos.pod            \
        pod1\fs_bypassthreshold.pod    \
        pod1\fs_checkservers.pod       \
        pod1\fs_checkvolumes.pod       \
        pod1\fs_chgrp.pod              \
        pod1\fs_chown.pod              \
        pod1\fs_cleanacl.pod           \
        pod1\fs_copyacl.pod            \
        pod1\fs_cscpolicy.pod          \
        pod1\fs_diskfree.pod           \
        pod1\fs_examine.pod            \
        pod1\fs_exportafs.pod          \
        pod1\fs_flush.pod              \
        pod1\fs_flushall.pod           \
        pod1\fs_flushmount.pod         \
        pod1\fs_flushvolume.pod        \
        pod1\fs_getcacheparms.pod      \
        pod1\fs_getcalleraccess.pod    \
        pod1\fs_getcellstatus.pod      \
        pod1\fs_getclientaddrs.pod     \
        pod1\fs_getcrypt.pod           \
        pod1\fs_getfid.pod             \
        pod1\fs_getserverprefs.pod     \
        pod1\fs_help.pod               \
        pod1\fs_listacl.pod            \
        pod1\fs_listaliases.pod        \
        pod1\fs_listcells.pod          \
        pod1\fs_listquota.pod          \
        pod1\fs_lsmount.pod            \
        pod1\fs_memdump.pod            \
        pod1\fs_messages.pod           \
        pod1\fs_minidump.pod           \
        pod1\fs_mkmount.pod            \
        pod1\fs_monitor.pod            \
        pod1\fs_newalias.pod           \
        pod1\fs_newcell.pod            \
        pod1\fs_quota.pod              \
        pod1\fs_rmmount.pod            \
        pod1\fs_rxstatpeer.pod         \
        pod1\fs_rxstatproc.pod         \
        pod1\fs_setacl.pod             \
        pod1\fs_setcachesize.pod       \
        pod1\fs_setcbaddr.pod          \
        pod1\fs_setcell.pod            \
        pod1\fs_setclientaddrs.pod     \
        pod1\fs_setcrypt.pod           \
        pod1\fs_setquota.pod           \
        pod1\fs_setserverprefs.pod     \
        pod1\fs_setvol.pod             \
        pod1\fs_storebehind.pod        \
        pod1\fs_sysname.pod            \
        pod1\fs_trace.pod              \
        pod1\fs_uuid.pod               \
        pod1\fs_whereis.pod            \
        pod1\fs_whichcell.pod          \
        pod1\fs_wscell.pod             \
        pod1\klog.krb5.pod             \
        pod1\klog.pod                  \
        pod1\knfs.pod                  \
        pod1\kpasswd.pod               \
        pod1\livesys.pod               \
        pod1\pagsh.pod                 \
        pod1\pts.pod                   \
        pod1\pts_adduser.pod           \
        pod1\pts_apropos.pod           \
        pod1\pts_chown.pod             \
        pod1\pts_creategroup.pod       \
        pod1\pts_createuser.pod        \
        pod1\pts_delete.pod            \
        pod1\pts_examine.pod           \
        pod1\pts_help.pod              \
        pod1\pts_interactive.pod       \
        pod1\pts_listentries.pod       \
        pod1\pts_listmax.pod           \
        pod1\pts_listowned.pod         \
        pod1\pts_membership.pod        \
        pod1\pts_quit.pod              \
        pod1\pts_removeuser.pod        \
        pod1\pts_rename.pod            \
        pod1\pts_setfields.pod         \
        pod1\pts_setmax.pod            \
        pod1\pts_sleep.pod             \
        pod1\pts_source.pod            \
        pod1\restorevol.pod            \
        pod1\rxdebug.pod               \
        pod1\rxgen.pod                 \
        pod1\scout.pod                 \
        pod1\symlink.pod               \
        pod1\symlink_list.pod          \
        pod1\symlink_make.pod          \
        pod1\symlink_remove.pod        \
        pod1\sys.pod                   \
        pod1\tokens.pod                \
        pod1\translate_et.pod          \
        pod1\udebug.pod                \
        pod1\unlog.pod                 \
        pod1\up.pod                    \
        pod1\vos.pod                   \
        pod1\vos_addsite.pod           \
        pod1\vos_apropos.pod           \
        pod1\vos_backup.pod            \
        pod1\vos_backupsys.pod         \
        pod1\vos_changeaddr.pod        \
        pod1\vos_changeloc.pod         \
        pod1\vos_clone.pod             \
        pod1\vos_convertROtoRW.pod     \
        pod1\vos_copy.pod              \
        pod1\vos_create.pod            \
        pod1\vos_delentry.pod          \
        pod1\vos_dump.pod              \
        pod1\vos_examine.pod           \
        pod1\vos_help.pod              \
        pod1\vos_listaddrs.pod         \
        pod1\vos_listpart.pod          \
        pod1\vos_listvldb.pod          \
        pod1\vos_listvol.pod           \
        pod1\vos_lock.pod              \
        pod1\vos_move.pod              \
        pod1\vos_offline.pod           \
        pod1\vos_online.pod            \
        pod1\vos_partinfo.pod          \
        pod1\vos_release.pod           \
        pod1\vos_remove.pod            \
        pod1\vos_remsite.pod           \
        pod1\vos_rename.pod            \
        pod1\vos_restore.pod           \
        pod1\vos_setfields.pod         \
        pod1\vos_shadow.pod            \
        pod1\vos_size.pod              \
        pod1\vos_status.pod            \
        pod1\vos_syncserv.pod          \
        pod1\vos_syncvldb.pod          \
        pod1\vos_unlock.pod            \
        pod1\vos_unlockvldb.pod        \
        pod1\vos_zap.pod               \
        pod1\xstat_cm_test.pod         \
        pod1\xstat_fs_test.pod         \
        pod5\afs.pod                   \
        pod5\afsmonitor.pod            \
        pod5\afszcm.cat.pod            \
        pod5\afs_cache.pod             \
        pod5\afs_volume_header.pod     \
        pod5\AuthLog.dir.pod           \
        pod5\AuthLog.pod               \
        pod5\BackupLog.pod             \
        pod5\bdb.DB0.pod               \
        pod5\BosConfig.pod             \
        pod5\BosLog.pod                \
        pod5\butc.pod                  \
        pod5\butc_logs.pod             \
        pod5\cacheinfo.pod             \
        pod5\CellAlias.pod             \
        pod5\CellServDB.pod            \
        pod5\FileLog.pod               \
        pod5\fms.log.pod               \
        pod5\FORCESALVAGE.pod          \
        pod5\kaserver.DB0.pod          \
        pod5\kaserverauxdb.pod         \
        pod5\KeyFile.pod               \
        pod5\krb.conf.pod              \
        pod5\NetInfo.pod               \
        pod5\NetRestrict.pod           \
        pod5\NoAuth.pod                \
        pod5\prdb.DB0.pod              \
        pod5\SALVAGE.fs.pod            \
        pod5\salvage.lock.pod          \
        pod5\SalvageLog.pod            \
        pod5\sysid.pod                 \
        pod5\tapeconfig.pod            \
        pod5\ThisCell.pod              \
        pod5\UserList.pod              \
        pod5\uss.pod                   \
        pod5\uss_bulk.pod              \
        pod5\vldb.DB0.pod              \
        pod5\VLLog.pod                 \
        pod5\VolserLog.pod             \
        pod8\afsd.pod                  \
        pod8\asetkey.pod               \
        pod8\backup.pod                \
        pod8\backup_adddump.pod        \
        pod8\backup_addhost.pod        \
        pod8\backup_addvolentry.pod    \
        pod8\backup_addvolset.pod      \
        pod8\backup_apropos.pod        \
        pod8\backup_dbverify.pod       \
        pod8\backup_deldump.pod        \
        pod8\backup_deletedump.pod     \
        pod8\backup_delhost.pod        \
        pod8\backup_delvolentry.pod    \
        pod8\backup_delvolset.pod      \
        pod8\backup_diskrestore.pod    \
        pod8\backup_dump.pod           \
        pod8\backup_dumpinfo.pod       \
        pod8\backup_help.pod           \
        pod8\backup_interactive.pod    \
        pod8\backup_jobs.pod           \
        pod8\backup_kill.pod           \
        pod8\backup_labeltape.pod      \
        pod8\backup_listdumps.pod      \
        pod8\backup_listhosts.pod      \
        pod8\backup_listvolsets.pod    \
        pod8\backup_quit.pod           \
        pod8\backup_readlabel.pod      \
        pod8\backup_restoredb.pod      \
        pod8\backup_savedb.pod         \
        pod8\backup_scantape.pod       \
        pod8\backup_setexp.pod         \
        pod8\backup_status.pod         \
        pod8\backup_volinfo.pod        \
        pod8\backup_volrestore.pod     \
        pod8\backup_volsetrestore.pod  \
        pod8\bos.pod                   \
        pod8\bosserver.pod             \
        pod8\bos_addhost.pod           \
        pod8\bos_addkey.pod            \
        pod8\bos_adduser.pod           \
        pod8\bos_apropos.pod           \
        pod8\bos_create.pod            \
        pod8\bos_delete.pod            \
        pod8\bos_exec.pod              \
        pod8\bos_getdate.pod           \
        pod8\bos_getlog.pod            \
        pod8\bos_getrestart.pod        \
        pod8\bos_help.pod              \
        pod8\bos_install.pod           \
        pod8\bos_listhosts.pod         \
        pod8\bos_listkeys.pod          \
        pod8\bos_listusers.pod         \
        pod8\bos_prune.pod             \
        pod8\bos_removehost.pod        \
        pod8\bos_removekey.pod         \
        pod8\bos_removeuser.pod        \
        pod8\bos_restart.pod           \
        pod8\bos_salvage.pod           \
        pod8\bos_setauth.pod           \
        pod8\bos_setcellname.pod       \
        pod8\bos_setrestart.pod        \
        pod8\bos_shutdown.pod          \
        pod8\bos_start.pod             \
        pod8\bos_startup.pod           \
        pod8\bos_status.pod            \
        pod8\bos_stop.pod              \
        pod8\bos_uninstall.pod         \
        pod8\bos_util.pod              \
        pod8\buserver.pod              \
        pod8\butc.pod                  \
        pod8\dafileserver.pod          \
        pod8\dasalvager.pod            \
        pod8\davolserver.pod           \
        pod8\fileserver.pod            \
        pod8\fms.pod                   \
        pod8\fstrace.pod               \
        pod8\fstrace_apropos.pod       \
        pod8\fstrace_clear.pod         \
        pod8\fstrace_dump.pod          \
        pod8\fstrace_help.pod          \
        pod8\fstrace_lslog.pod         \
        pod8\fstrace_lsset.pod         \
        pod8\fstrace_setlog.pod        \
        pod8\fstrace_setset.pod        \
        pod8\ka-forwarder.pod          \
        pod8\kadb_check.pod            \
        pod8\kas.pod                   \
        pod8\kaserver.pod              \
        pod8\kas_apropos.pod           \
        pod8\kas_create.pod            \
        pod8\kas_delete.pod            \
        pod8\kas_examine.pod           \
        pod8\kas_forgetticket.pod      \
        pod8\kas_help.pod              \
        pod8\kas_interactive.pod       \
        pod8\kas_list.pod              \
        pod8\kas_listtickets.pod       \
        pod8\kas_noauthentication.pod  \
        pod8\kas_quit.pod              \
        pod8\kas_setfields.pod         \
        pod8\kas_setpassword.pod       \
        pod8\kas_statistics.pod        \
        pod8\kas_stringtokey.pod       \
        pod8\kas_unlock.pod            \
        pod8\kdb.pod                   \
        pod8\kpwvalid.pod              \
        pod8\prdb_check.pod            \
        pod8\ptserver.pod              \
        pod8\pt_util.pod               \
        pod8\read_tape.pod             \
        pod8\rmtsysd.pod               \
        pod8\salvager.pod              \
        pod8\salvageserver.pod         \
        pod8\upclient.pod              \
        pod8\upserver.pod              \
        pod8\uss.pod                   \
        pod8\uss_add.pod               \
        pod8\uss_apropos.pod           \
        pod8\uss_bulk.pod              \
        pod8\uss_delete.pod            \
        pod8\uss_help.pod              \
        pod8\vldb_check.pod            \
        pod8\vldb_convert.pod          \
        pod8\vlserver.pod              \
        pod8\voldump.pod               \
        pod8\volinfo.pod               \
        pod8\volscan.pod               \
        pod8\volserver.pod             \
        pod8\vsys.pod                  \
        pod8\xfs_size_check.pod

html\index.html: $(PODS)
        @echo Building man pages in HTML format
        $(PERL) generate-html


install: html\index.html

clean::
        $(CD) html
        $(DEL) /s *.html
        $(CD) ..
        $(DEL) pod1\fs_listquota.pod
        $(DEL) pod1\fs_quota.pod
        $(DEL) pod1\fs_setquota.pod
        $(DEL) pod1\fs_setvol.pod
        $(DEL) pod1\pts_adduser.pod
        $(DEL) pod1\pts_chown.pod
        $(DEL) pod1\pts_creategroup.pod
        $(DEL) pod1\pts_createuser.pod
        $(DEL) pod1\pts_delete.pod
        $(DEL) pod1\pts_examine.pod
        $(DEL) pod1\pts_interactive.pod
        $(DEL) pod1\pts_listentries.pod
        $(DEL) pod1\pts_listmax.pod
        $(DEL) pod1\pts_listowned.pod
        $(DEL) pod1\pts_membership.pod
        $(DEL) pod1\pts_quit.pod
        $(DEL) pod1\pts_removeuser.pod
        $(DEL) pod1\pts_rename.pod
        $(DEL) pod1\pts_setfields.pod
        $(DEL) pod1\pts_setmax.pod
        $(DEL) pod1\pts_sleep.pod
        $(DEL) pod1\pts_source.pod
        $(DEL) pod1\vos.pod
        $(DEL) pod1\vos_addsite.pod
        $(DEL) pod1\vos_clone.pod
        $(DEL) pod1\vos_copy.pod
        $(DEL) pod1\vos_create.pod
        $(DEL) pod1\vos_examine.pod
        $(DEL) pod1\vos_move.pod
        $(DEL) pod1\vos_partinfo.pod
        $(DEL) pod1\vos_shadow.pod
        $(DEL) pod1\vos_zap.pod
        $(DEL) pod8\dafileserver.pod
        $(DEL) pod8\dasalvager.pod
        $(DEL) pod8\davolserver.pod
        $(DEL) pod8\fileserver.pod
        $(DEL) pod8\salvager.pod
        $(DEL) pod8\volserver.pod

.SUFFIXES: .pod.in

{pod1}.pod.in{pod1}.pod::
        $(PERL) merge-pod $<

{pod5}.pod.in{pod5}.pod::
        $(PERL) merge-pod $<

{pod8}.pod.in{pod8}.pod::
        $(PERL) merge-pod $<
