Debian Codegraph @

Makefile

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 ########################################################################
2 # Makefile for installing SGMLS.pm and associated files in Unix
3 # or Unix-like environments. You should check the values of the
4 # variables at the beginning and change them as appropriate.
5 #
6 # Version: 1.03ii
7 ########################################################################
8
9 DIST = SGMLSpm-1.03ii.tar.gz
10
11 #
12 # Beginning of user options.
13 #
14
15 # Where is the binary for perl5 located on your system?
16 PERL = /usr/bin/perl
17
18 # Where do you want the sgmlspl executable script to be installed?
19 BINDIR = /usr/local/bin
20
21 # Where do you put local perl5 libaries?
22 PERL5DIR = /usr/local/lib/perl5
23 MODULEDIR = ${PERL5DIR}/SGMLS
24
25 # Where do you want to put sgmlspl specifications?
26 SPECDIR = ${PERL5DIR}
27
28 # If you plan to install the HTML version of the documentation, where
29 # do you intend to put it? 'make html' will create two
30 # subdirectories, ${HTMLDIR}/SGMLSpm and ${HTMLDIR}/sgmlspl, and place
31 # its files there.
32 HTMLDIR = /usr/local/lib/www/docs
33
34
35 #
36 # End of user options.
37 #
38
39 HTML_SOURCES = DOC/HTML/SGMLSpm/ DOC/HTML/sgmlspl/
40
41 FILES = ${BINDIR}/sgmlspl \
42 ${PERL5DIR}/SGMLS.pm \
43 ${MODULEDIR}/Output.pm \
44 ${MODULEDIR}/Refs.pm \
45 ${SPECDIR}/skel.pl
46
47 all: install docs
48
49 install: install_system # install_html
50
51 install_system: ${MODULEDIR} ${FILES}
52
53 dist: ${DIST}
54
55 ${BINDIR}/sgmlspl: sgmlspl.pl
56 sed -e 's!/usr/bin/perl!${PERL}!' sgmlspl.pl > ${BINDIR}/sgmlspl
57 chmod a+x,a+r ${BINDIR}/sgmlspl
58
59 ${PERL5DIR}/SGMLS.pm: SGMLS.pm
60 cp SGMLS.pm ${PERL5DIR}/SGMLS.pm
61 chmod a+r ${PERL5DIR}/SGMLS.pm
62
63 ${MODULEDIR}:
64 if [ ! -d ${MODULEDIR} ]; then\
65 mkdir ${MODULEDIR}; \
66 chmod a+x ${MODULEDIR}; \
67 fi
68
69 ${MODULEDIR}/Output.pm: Output.pm
70 cp Output.pm ${MODULEDIR}/Output.pm
71 chmod a+r ${MODULEDIR}/Output.pm
72
73 ${MODULEDIR}/Refs.pm: Refs.pm
74 cp Refs.pm ${MODULEDIR}/Refs.pm
75 chmod a+r ${MODULEDIR}/Refs.pm
76
77 ${SPECDIR}/skel.pl: skel.pl
78 cp skel.pl ${SPECDIR}/skel.pl
79 chmod a+r ${SPECDIR}/skel.pl
80
81 install_html: ${HTML_SOURCES}
82 cd DOC; make html
83 rm -rf ${HTMLDIR}/SGMLSpm ${HTMLDIR}/sgmlspl
84 cp -r ${HTML_SOURCES} ${HTMLDIR}
85 chmod a+x,a+r ${HTMLDIR}/SGMLSpm ${HTMLDIR}/sgmlspl
86 chmod a+r ${HTMLDIR}/SGMLSpm/* ${HTMLDIR}/sgmlspl/*
87
88 docs:
89 cd DOC; make all
90
91 ${DIST}: clean docs
92 cd ..; \
93 tar -c -v -z --exclude RCS -f /tmp/${DIST} SGMLSpm; \
94 mv /tmp/${DIST} SGMLSpm
95
96 clean:
•97 #cd DOC; make clean
98 rm -f *~ core *.tar *.tar.gz