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