stk/Doc/Manual/Makefile

72 lines
1.6 KiB
Makefile
Raw Permalink Normal View History

1999-09-05 07:16:41 -04:00
# Copyright <20> 1994-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
1998-04-10 06:59:06 -04:00
#
1999-09-05 07:16:41 -04:00
# Permission to use, copy, modify, distribute,and license this
# software and its documentation for any purpose is hereby granted,
# provided that existing copyright notices are retained in all
# copies and that this notice is included verbatim in any
# distributions. No written agreement, license, or royalty fee is
# required for any of the authorized uses.
# This software is provided ``AS IS'' without express or implied
# warranty.
1998-04-10 06:59:06 -04:00
#
# Author: Erick Gallesio [eg@unice.fr]
# Creation date: 21-Oct-1994 11:25
1999-09-05 07:16:41 -04:00
# Last file update: 3-Sep-1999 21:19 (eg)
1998-04-10 06:59:06 -04:00
include ../../config.make
MAN1_DIR=$(mandir)/man1
MANN_DIR=$(mandir)/mann
1996-09-27 06:29:02 -04:00
all: ps txt
dvi:
ps: stk.ps stk.txt man-pages.ps
txt: stk.txt
#
# Manual pages
#
man-pages.ps:
groff -man *.n > man-pages.ps
#
# STk man page
#
stk.ps: stk.1
groff -man stk.1 > stk.ps
stk.txt: stk.1
nroff -man stk.1 > stk.txt
1998-04-10 06:59:06 -04:00
#
# install.man
#
install.man:
-if [ ! -d $(mandir) ] ; then mkdir -p $(mandir); fi
rm -f $(stkdir)/man
(cd $(stkdir) ; ln -s $(VERSION)/man ./man)
-if [ ! -d $(MAN1_DIR) ] ; then mkdir -p $(MAN1_DIR); fi
rm -f $(MAN1_DIR)/*.n $(MAN1_DIR)/stk.1 $(MAN1_DIR)/snow.1
$(CP) STk-man.macros $(MAN1_DIR)
$(CP) stk.1 $(MAN1_DIR)/stk.1
ln $(MAN1_DIR)/stk.1 $(MAN1_DIR)/snow.1
chmod 444 $(MAN1_DIR)/*
-if [ ! -d $(MANN_DIR) ] ; then mkdir -p $(MANN_DIR); fi
$(CP) STk-man.macros $(MANN_DIR)
for i in *.n ;do \
$(CP) $$i $(MANN_DIR)/stk_$$i; \
done
1998-04-30 07:04:33 -04:00
# ../../Src/test-stk -no -file make-link $(MANN_DIR)
1998-04-10 06:59:06 -04:00
1996-09-27 06:29:02 -04:00
clean:
1999-09-05 07:16:41 -04:00
rm -f *~ man-pages.ps
1996-09-27 06:29:02 -04:00
very-clean: clean
rm -f *.ps