summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3fc74e0a3dda83656852f670ccdf4ca9628d25be (plain)
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
# Makefile for man
# [need allow_null_glob_expansion=true]
# The parts behind 

all:    Makefile conf_script source manhtml manpages
        @echo; echo 'You can now do "make install"'

# On a machine with time before distribution time
# it may be necessary to touch all distributed files

Makefile: Makefile.in configure
        @echo "Please run configure first"
        exit 1

conf_script:    configure
        @echo "Please run configure first"
        exit 1

src/Makefile:   conf_script src/Makefile.in
        cd src; ../conf_script Makefile

man2html/Makefile:      conf_script man2html/Makefile.in
        cd man2html; ../conf_script Makefile                    

man/Makefile:   conf_script man/Makefile.in
        cd man; ../conf_script Makefile

msgs/Makefile:  conf_script msgs/Makefile.in
        cd msgs; ../conf_script Makefile

makefiles: src/Makefile man2html/Makefile man/Makefile msgs/Makefile

source: src/Makefile
        cd src; $(MAKE)

manhtml: man2html/Makefile source
        cd man2html; $(MAKE)

manpages: man/Makefile
        cd man; $(MAKE) subdirs







install: src/Makefile man/Makefile man2html/Makefile
        cd src; $(MAKE) install
        cd man2html; $(MAKE) install
        cd man; $(MAKE) installsubdirs

        @echo; echo 'Done.'
        @echo 'In case you want to browse man pages using a www browser,'
        @echo '"cd man2html", read README, and perhaps "make install-scripts".'
#       @echo; echo 'Done. In case you want to mount /usr read-only, please'
#       @echo 'install a symlink /usr/man/whatis -> /var/catman/whatis, or so.'

clean: src/Makefile man/Makefile msgs/Makefile man2html/Makefile
        cd src; $(MAKE) clean
        cd man2html; $(MAKE) clean
        cd man; $(MAKE) cleansubdirs
        cd msgs; $(MAKE) clean
        cd gencat; $(MAKE) clean
        rm -f core *~

spotless distclean reallyclean: clean
        cd src; $(MAKE) spotless
        cd man2html; $(MAKE) spotless
        cd man; $(MAKE) spotlesssubdirs
        cd msgs; $(MAKE) spotless
        cd gencat; $(MAKE) clean
        rm -f conf_script Makefile

DISTR = COPYING README README.HP README.RedHat README.GNU-WIN32 INSTALL \
        Makefile.in configure src man2html man msgs gencat catopen misc