a6f325e89e7f03acf0040657b839112799fdf224
[dana/urxvt.git] / Makefile.in
1 # ./Makefile.in                 -*- Makefile -*-
2
3 DATE=@DATE@
4 VERSION=@VERSION@
5 RXVTNAME=@RXVTNAME@
6 SHELL = /bin/sh
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 libdir = @libdir@
11 includedir = @includedir@
12 man1dir = @mandir@/man1
13 man1ext = 1
14 man3dir = @mandir@/man3
15 man3ext = 3
16 man7dir = @mandir@/man7
17 man7ext = 7
18 CC = @CC@
19 CXX = @CXX@
20 CPP = @CPP@
21 MV = @MV@
22 RM = @RM@
23 RMF = @RM@ -f
24 CP = @CP@
25 LN = @LN@
26 SED = @SED@
27 AWK = @AWK@
28 ECHO = @ECHO@
29 CMP = @CMP@
30 TBL = @TBL@
31 PERL = @PERL@
32 INSTALL = @INSTALL@
33 INSTALL_PROGRAM = @INSTALL@ -m 755
34 INSTALL_DATA = @INSTALL@ -m 644
35 CXXFLAGS = @CXXFLAGS@ 
36 CPPFLAGS = @CPPFLAGS@ @XPM_CPPFLAGS@
37 LDFLAGS = @LDFLAGS@
38 DEFS = @DEFS@
39 LIBS = @LIBS@
40 DINCLUDE = @DINCLUDE@
41 DLIB = @DLIB@
42 XINC = @X_CFLAGS@ @XPM_CFLAGS@
43 XLIB = @X_LIBS@ @XPM_LIBS@ -lX11 @X_EXTRA_LIBS@
44 COMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) $(DEBUG) $(DINCLUDE) $(XINC) -I$(basedir) -I$(srcdir) -I.
45 LINK = @LINKER@ $(LDFLAGS)
46
47 VERNAME = rxvt-unicode-$(VERSION)
48
49 srcdir =        @srcdir@
50 VPATH =         @srcdir@
51 .PATH:          @srcdir@
52
53 first_rule: all
54 dummy:
55
56 subdirs = src doc
57 allsubdirs = $(subdirs)
58
59 DIST =  INSTALL README.configure configure Makefile Makefile.in ChangeLog
60
61 DIST_CFG = autoconf/aclocal.m4 autoconf/xpm.m4 autoconf/libtool.m4 \
62         autoconf/configure.in  autoconf/config.h.in \
63         autoconf/install-sh autoconf/mkinstalldirs \
64         autoconf/config.guess autoconf/config.sub \
65         autoconf/ltmain.sh \
66
67 MKDIR = $(srcdir)/autoconf/mkinstalldirs
68
69 #-------------------------------------------------------------------------
70
71 all allbin alldoc tags:
72         @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done
73
74 realclean: clean
75         $(RMF) config.h config.status config.log libtool
76
77 clean:
78         $(RMF) *~ config.cache
79         $(RMF) -r autom4te.cache
80         @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done
81
82 #
83 # entry points for other programs
84 #
85 rxvt:
86         (cd src; ${MAKE})
87
88 tests:
89         (cd src/test; ${MAKE} tests)
90
91 #-------------------------------------------------------------------------
92 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/config.h.in
93         cd $(srcdir);
94         ./.prebuild
95
96 config.status:
97         if test -x config.status; then config.status --recheck; \
98         else $(SHELL) configure; fi
99
100 autoconf/config.h.in: autoconf/configure.in
101         cd $(srcdir);
102         ./.prebuild
103
104 installdirs:
105         $(MKDIR) $(DESTDIR)$(bindir)
106         $(MKDIR) $(DESTDIR)$(mandir)
107
108 install: installdirs
109         @for I in $(subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@) || exit 1; done
110
111 check: all
112         echo "no tests"
113
114 Makefiles:
115         $(SHELL) config.status
116
117 cleandir: realclean
118
119 # distclean goal is for making a clean source tree, but if you have run
120 # configure from a different directory, then doesn't destroy all your
121 # hardly compiled and linked stuff. That's why there is always $(srcdir)/
122 # In that case most of those commands do nothing, except cleaning *~
123 # and cleaning source links.
124 distclean:
125         (cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status libtool)
126         @for I in $(allsubdirs); do (cd $$I; $(MAKE) $@) || exit 1; done
127         (cd $(srcdir); $(RMF) Makefile)
128
129 distdir:
130         cd doc && $(MAKE) distdepend
131         cd src && $(MAKE) depend
132         rm -rf $(VERNAME)
133         mkdir $(VERNAME)
134         rsync -aR `cat MANIFEST` $(VERNAME)/.
135
136 tar.gz: distdir
137         tar cvf - $(VERNAME) | gzip -vf9 > $(VERNAME).tar.gz
138         rm -rf $(VERNAME)
139
140 tar.bz2: distdir
141         tar cvf - $(VERNAME) | bzip2 -vf9 > $(VERNAME).tar.bz2
142         rm -rf $(VERNAME)
143
144 dist: tar.bz2
145
146 # ------------------------------------------------------------------------