1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
|
# SCCS-info %W% %E%
#
# /*--------------------------------------------------------------------*/
# /* */
# /* VCG : Visualization of Compiler Graphs */
# /* -------------------------------------- */
# /* */
# /* file: Makefile */
# /* version: 1.00.00 */
# /* creation: 1.4.1993 */
# /* author: I. Lemke (...-Version 0.99.99) */
# /* G. Sander (Version 1.00.00-...) */
# /* Universitaet des Saarlandes, W-66041 Saarbruecken */
# /* ESPRIT Project #5399 Compare */
# /* description: Makefile for the manual pages */
# /* status: in work */
# /* */
# /*--------------------------------------------------------------------*/
#
# $Id: Makefile,v 1.3 1994/01/21 19:54:22 sander Exp sander $
#
# $Log: Makefile,v $
# Revision 1.3 1994/01/21 19:54:22 sander
# Manual page extension changed to man.
# Install problems solved for Sys V and IBM R6000.
#
# Revision 1.2 1994/01/04 11:42:04 sander
# vcg.man added.
#
# Revision 1.1 1994/01/03 18:18:23 sander
# Initial revision
#
#
#========================= CHANGE AREA =========================
# Please update the change area according to your system, if you
# want to call this Makefile directly
# where the manual pages go
# MANDIR = /usr/local/man/manl/
MANDIR = /RW/esprit/users/sander/PUBLIC/MAN/
# How the manual pages should be called
MANEXT = l
#-------------------------- Tools ------------------------------
# Install software. You can use /bin/cp instead of /bin/install.
# For directories:
# INSTALLDIR = /bin/install -d -m 755
INSTALLDIR = echo
# For manual pages:
# Assume that you want to install a file called dummy.
INSTALLMAN = /bin/install -m 644 dummy $(MANDIR)/dummy
# RCS check out shellscript
CHECKOUT = co
# RCS check edit shellscript
CHECKEDIT = ce
# RCS check in shellscript
CHECKIN = ci
# MakeDepend (should understand the -f option)
DEPEND = makedepend
# Remove File
RM = /bin/rm
# Link Files (or Copy them)
LN = /bin/ln -s
# Copy Files
CP = /bin/cp
# Stream editor
SED = sed
#==================== END OF CHANGE AREA ======================
#-------------------------- Files ------------------------------
# Manual Page - Files
MANFILES = pbmrot90.man pbmshift.man pbm2hp.man vcgdemomaker.man vcg.man
# Manual Pages we want to install
INSTALLMANPAGES = pbmrot90 pbmshift pbm2hp vcgdemomaker vcg
SOURCES = $(MANFILES)
#-------------------------- Rules ------------------------------
all: install
$(SOURCES):
$(CHECKOUT) $@
# We do not install everything but only the useful tools
#
install: $(MANFILES)
-$(INSTALLDIR) $(MANDIR)
$(CP) vcg.man xvcg.man
for i in $(INSTALLMANPAGES) xvcg;\
do \
case "$(MANEXT)" in \
man) ;; \
*) $(RM) -f $$i.$(MANEXT); $(CP) $$i.man $$i.$(MANEXT) ;;\
esac; \
m=`echo $(INSTALLMAN) | $(SED) -e "s/dummy/$$i.$(MANEXT)/g"`; \
$$m; \
done
makefiles: Makefile
# Cleanup rules
#
clean: makefiles
$(RM) -f xvcg.man stamp-*
case "$(MANEXT)" in \
man) ;; \
*) $(RM) -f *.$(MANEXT);;\
esac;
for i in $(INSTALLMANPAGES);\
do \
$(RM) -f $$i.ps; \
done
veryclean: clean targetclean
targetclean: makefiles
distclean: veryclean targetclean
$(RM) -f core
# Auxiliary rules
#
depend:
checkout: Makefile $(SOURCES)
checkedit: Makefile
$(CHECKEDIT) $(SOURCES)
checkin: Makefile
$(CHECKIN) $(SOURCES)
tar: Makefile $(SOURCES)
tar -cf manpages.tar Makefile $(SOURCES)
mandoc: $(MANFILES)
for i in $(INSTALLMANPAGES);\
do \
myptroff ../docsrc/docutils/tmac.gs -t $$i.man > $$i.ps; \
$(CP) $$i.ps ../doc; \
done
dist: tar mandoc
# DO NOT DELETE THIS LINE -- make depend depends on it.
|