File: Makefile

package info (click to toggle)
libsgmls-perl 1.03ii-32
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 644 kB
  • ctags: 154
  • sloc: perl: 1,557; lisp: 262; makefile: 169
file content (98 lines) | stat: -rw-r--r-- 2,393 bytes parent folder | download | duplicates (4)
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
########################################################################
# Makefile for installing SGMLS.pm and associated files in Unix
# or Unix-like environments.  You should check the values of the
# variables at the beginning and change them as appropriate.
#
# Version: 1.03ii
########################################################################

DIST = SGMLSpm-1.03ii.tar.gz

#
# Beginning of user options.
#

# Where is the binary for perl5 located on your system?
PERL = /usr/bin/perl

# Where do you want the sgmlspl executable script to be installed?
BINDIR = /usr/local/bin

# Where do you put local perl5 libaries?
PERL5DIR = /usr/local/lib/perl5
MODULEDIR = ${PERL5DIR}/SGMLS

# Where do you want to put sgmlspl specifications?
SPECDIR = ${PERL5DIR}

# If you plan to install the HTML version of the documentation, where
# do you intend to put it?  'make html' will create two
# subdirectories, ${HTMLDIR}/SGMLSpm and ${HTMLDIR}/sgmlspl, and place
# its files there.
HTMLDIR = /usr/local/lib/www/docs


#
# End of user options.
#

HTML_SOURCES = DOC/HTML/SGMLSpm/ DOC/HTML/sgmlspl/

FILES =	${BINDIR}/sgmlspl \
	${PERL5DIR}/SGMLS.pm \
	${MODULEDIR}/Output.pm \
	${MODULEDIR}/Refs.pm \
	${SPECDIR}/skel.pl

all: install docs

install: install_system # install_html

install_system: ${MODULEDIR} ${FILES}

dist: ${DIST}

${BINDIR}/sgmlspl: sgmlspl.pl
	sed -e 's!/usr/bin/perl!${PERL}!' sgmlspl.pl > ${BINDIR}/sgmlspl
	chmod a+x,a+r ${BINDIR}/sgmlspl

${PERL5DIR}/SGMLS.pm: SGMLS.pm
	cp SGMLS.pm ${PERL5DIR}/SGMLS.pm
	chmod a+r ${PERL5DIR}/SGMLS.pm

${MODULEDIR}:
	if [ ! -d ${MODULEDIR} ]; then\
	  mkdir ${MODULEDIR}; \
	  chmod a+x ${MODULEDIR}; \
	fi

${MODULEDIR}/Output.pm: Output.pm
	cp Output.pm ${MODULEDIR}/Output.pm
	chmod a+r ${MODULEDIR}/Output.pm

${MODULEDIR}/Refs.pm: Refs.pm
	cp Refs.pm ${MODULEDIR}/Refs.pm
	chmod a+r ${MODULEDIR}/Refs.pm

${SPECDIR}/skel.pl: skel.pl
	cp skel.pl ${SPECDIR}/skel.pl
	chmod a+r ${SPECDIR}/skel.pl

install_html: ${HTML_SOURCES}
	cd DOC; make html
	rm -rf ${HTMLDIR}/SGMLSpm ${HTMLDIR}/sgmlspl
	cp -r ${HTML_SOURCES} ${HTMLDIR}
	chmod a+x,a+r ${HTMLDIR}/SGMLSpm ${HTMLDIR}/sgmlspl
	chmod a+r ${HTMLDIR}/SGMLSpm/* ${HTMLDIR}/sgmlspl/*

docs:
	cd DOC; make all

${DIST}: clean docs
	cd ..; \
	tar -c -v -z --exclude RCS -f /tmp/${DIST} SGMLSpm; \
	mv /tmp/${DIST} SGMLSpm

clean:
	#cd DOC; make clean
	rm -f *~ core *.tar *.tar.gz