Diff of /Makefile.in [d6e139] .. [34865e] Maximize Restore

  Switch to unified view

a/Makefile.in b/Makefile.in
1
# Makefile for man
1
# Makefile for man
2
# [need allow_null_glob_expansion=true]
2
# Source: Makefile.in -- processed by configure, to create Makefile.
3
# The parts behind % are removed when no message catalogs should be installed
3
#
4
# Copyright (C) 2005, Keith D. Marshall <keithmarshall@users.sourceforge.net>
5
#
6
# This file is part of the man package.
7
#
8
# man is free software; you can redistribute it and/or modify it under the
9
# terms of the GNU General Public License as published by the Free Software
10
# Foundation; either version 2, or (at your option) any later version.
11
#
12
# man is distributed in the hope that it will be useful, but WITHOUT ANY
13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
15
# details.
16
#
17
# You should have received a copy of the GNU General Public License along
18
# with man; see the file COPYING.  If not, write to the Free Software
19
# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
4
20
21
# To allow building in a separate build directory,
22
# (when the "make" program in use supports the VPATH capability),
23
# set up the srcdir mapping to VPATH.
24
25
srcdir = @srcdir@
26
VPATH = $(srcdir)
27
28
# Allow "configure" to choose if message catalogues will be built,
29
# and subsequently installed.
30
31
# (Disabled at present; uncomment to activate)...
32
# make_messages = @make_messages@
33
# install_messages = @make_install_messages@
34
5
all:    Makefile conf_script source manhtml manpages %messages
35
all:    Makefile $(config_sed) source manhtml manpages $(make_messages)
6
    @echo; echo 'You can now do "make install"'
36
    @echo; echo 'You can now do "make install"'
7
37
8
Makefile: Makefile.in configure
38
Makefile: Makefile.in configure
9
    @echo "Please run configure first"
39
    @echo "Please run configure first"
10
    exit 1
40
    exit 1
11
41
12
conf_script:  configure
42
config.sed: configure
13
    @echo "Please run configure first"
43
    @echo "Please run configure first"
14
    exit 1
44
    exit 1
15
45
16
src/Makefile: conf_script src/Makefile.in
46
src/Makefile: $(config_sed) src/Makefile.in
17
  cd src; ../conf_script Makefile
47
  cd src; sed -f ../config.sed Makefile.in > Makefile
18
48
19
man2html/Makefile:    conf_script man2html/Makefile.in
49
man2html/Makefile: $(config_sed) man2html/Makefile.in
20
  cd man2html; ../conf_script Makefile            
50
  cd man2html; sed -f ../config.sed Makefile.in > Makefile
21
51
22
man/Makefile: conf_script man/Makefile.in
52
man/Makefile: $(config_sed) man/Makefile.in
23
  cd man; ../conf_script Makefile
53
  cd man; sed -f ../config.sed Makefile.in > Makefile
24
54
25
msgs/Makefile:    conf_script msgs/Makefile.in
55
msgs/Makefile: $(config_sed) msgs/Makefile.in
26
  cd msgs; ../conf_script Makefile
56
  cd msgs; sed -f ../config.sed Makefile.in > Makefile
27
57
28
makefiles: src/Makefile man2html/Makefile man/Makefile msgs/Makefile
58
makefiles: src/Makefile man2html/Makefile man/Makefile msgs/Makefile
29
59
30
source: src/Makefile
60
source: src/Makefile
31
    cd src; $(MAKE)
61
    cd src; $(MAKE)
...
...
34
    cd man2html; $(MAKE)
64
    cd man2html; $(MAKE)
35
65
36
manpages: man/Makefile
66
manpages: man/Makefile
37
    cd man; $(MAKE) subdirs
67
    cd man; $(MAKE) subdirs
38
68
39
%messages: gencat/gencat msgs/Makefile
69
messages: gencat/gencat msgs/Makefile
40
%    cd msgs; $(MAKE)
70
    cd msgs; $(MAKE)
41
71
42
%gencat/gencat:
72
gencat/gencat:
43
%    cd gencat; $(MAKE)
73
    cd gencat; $(MAKE)
44
74
75
install: install-core $(install_messages) install-done
76
45
install: src/Makefile man/Makefile man2html/Makefile %msgs/Makefile
77
install-core: src/Makefile man/Makefile man2html/Makefile
46
    cd src; $(MAKE) install
78
    cd src; $(MAKE) install
47
    cd man2html; $(MAKE) install
79
    cd man2html; $(MAKE) install
48
    cd man; $(MAKE) installsubdirs
80
    cd man; $(MAKE) installsubdirs
81
82
install-messages: msgs/Makefile
49
%    cd msgs; $(MAKE) install
83
    cd msgs; $(MAKE) install
84
85
install-done:
50
    @echo; echo 'Done.'
86
    @echo; echo 'Done.'
51
  @echo 'In case you want to browse man pages using a www browser,'
87
  @echo 'If you would like to enable a www browser for man pages.'
52
    @echo '"cd man2html", read README, and perhaps "make install-scripts".'
88
    @echo '"cd man2html", read README, and perhaps "make install-scripts".'
53
#   @echo; echo 'Done. In case you want to mount /usr read-only, please'
89
#   @echo; echo 'Done. In case you want to mount /usr read-only, please'
54
#   @echo 'install a symlink /usr/man/whatis -> /var/catman/whatis, or so.'
90
#   @echo 'install a symlink /usr/man/whatis -> /var/catman/whatis,'
91
# @echo '(or to whatever cat page location is appropriate).'
55
92
56
clean: src/Makefile man/Makefile msgs/Makefile man2html/Makefile
93
clean: src/Makefile man/Makefile msgs/Makefile man2html/Makefile
57
    cd src; $(MAKE) clean
94
    cd src; $(MAKE) clean
58
    cd man2html; $(MAKE) clean
95
    cd man2html; $(MAKE) clean
59
    cd man; $(MAKE) cleansubdirs
96
    cd man; $(MAKE) cleansubdirs
...
...
65
    cd src; $(MAKE) spotless
102
    cd src; $(MAKE) spotless
66
    cd man2html; $(MAKE) spotless
103
    cd man2html; $(MAKE) spotless
67
    cd man; $(MAKE) spotlesssubdirs
104
    cd man; $(MAKE) spotlesssubdirs
68
    cd msgs; $(MAKE) spotless
105
    cd msgs; $(MAKE) spotless
69
    cd gencat; $(MAKE) clean
106
    cd gencat; $(MAKE) clean
70
    rm -f conf_script Makefile
107
    rm -f config.sed Makefile
71
108
72
DISTR = COPYING README README.HP README.RedHat README.GNU-WIN32 INSTALL \
109
DISTR = COPYING README README.HP README.RedHat README.GNU-WIN32 INSTALL \
73
    Makefile.in configure src man2html man msgs gencat catopen misc
110
    Makefile.in configure src man2html man msgs gencat catopen misc
74
111
75
dist:   spotless
112
dist:   spotless