*** empty log message ***
[dana/urxvt.git] / Makefile.in
1 # ./Makefile.in                 -*- Makefile -*-
2 @MCOMMON@
3
4 VERNAME = rxvt-unicode-$(VERSION)
5
6 srcdir =        @srcdir@
7 VPATH =         @srcdir@
8 .PATH:          @srcdir@
9
10 first_rule: all
11 dummy:
12
13 subdirs = src doc
14 allsubdirs = $(subdirs)
15
16 DIST =  INSTALL README.configure configure Makefile Makefile.in ChangeLog
17
18 DIST_CFG = autoconf/aclocal.m4 autoconf/xpm.m4 autoconf/libtool.m4 \
19         autoconf/configure.in  autoconf/config.h.in \
20         autoconf/Make.common.in autoconf/install-sh autoconf/mkinstalldirs \
21         autoconf/config.guess autoconf/config.sub \
22         autoconf/ltmain.sh \
23
24 MKDIR = $(srcdir)/autoconf/mkinstalldirs
25
26 #-------------------------------------------------------------------------
27
28 all allbin alldoc tags:
29         @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done
30
31 realclean: clean
32         $(RMF) config.h config.status config.log libtool
33
34 clean:
35         $(RMF) *~ config.cache
36         $(RMF) -r autom4te.cache
37         @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done
38
39 #
40 # entry points for other programs
41 #
42 rxvt:
43         (cd src; ${MAKE})
44
45 tests:
46         (cd src/test; ${MAKE} tests)
47
48 #-------------------------------------------------------------------------
49 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/config.h.in
50         cd $(srcdir);
51         ./.prebuild
52
53 config.status:
54         if test -x config.status; then config.status --recheck; \
55         else $(SHELL) configure; fi
56
57 autoconf/config.h.in: autoconf/configure.in
58         cd $(srcdir);
59         ./.prebuild
60
61 installdirs:
62         $(MKDIR) $(DESTDIR)$(bindir)
63         $(MKDIR) $(DESTDIR)$(mandir)
64
65 install: installdirs
66         @for I in $(subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@) || exit 1; done
67
68 check: all
69         echo "no tests"
70
71 Makefiles:
72         $(SHELL) config.status
73
74 cleandir: realclean
75
76 # distclean goal is for making a clean source tree, but if you have run
77 # configure from a different directory, then doesn't destroy all your
78 # hardly compiled and linked stuff. That's why there is always $(srcdir)/
79 # In that case most of those commands do nothing, except cleaning *~
80 # and cleaning source links.
81 distclean:
82         (cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status libtool)
83         @for I in $(allsubdirs); do (cd $$I; $(MAKE) $@) || exit 1; done
84         (cd $(srcdir); $(RMF) Makefile autoconf/Make.common)
85
86 distdir:
87         cd doc && $(MAKE) distdepend
88         cd src && $(MAKE) depend
89         rm -rf $(VERNAME)
90         mkdir $(VERNAME)
91         rsync -aR `cat MANIFEST` $(VERNAME)/.
92
93 tar.gz: distdir
94         tar cvf - $(VERNAME) | gzip -vf9 > $(VERNAME).tar.gz
95         rm -rf $(VERNAME)
96
97 tar.bz2: distdir
98         tar cvf - $(VERNAME) | bzip2 -vf9 > $(VERNAME).tar.bz2
99         rm -rf $(VERNAME)
100
101 dist: tar.bz2
102
103 # ------------------------------------------------------------------------