1 |
# ./Makefile.in -*- Makefile -*- |
2 |
# $Id: Makefile.in,v 1.9 2005/01/17 01:55:12 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 |
13 |
allsubdirs = $(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 |
@for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done |
29 |
|
30 |
realclean: clean |
31 |
$(RMF) config.h config.status config.log libtool |
32 |
|
33 |
clean: |
34 |
$(RMF) *~ config.cache |
35 |
$(RMF) -r autom4te.cache |
36 |
@for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done |
37 |
|
38 |
# |
39 |
# entry points for other programs |
40 |
# |
41 |
rxvt: |
42 |
(cd src; ${MAKE}) |
43 |
|
44 |
tests: |
45 |
(cd src/test; ${MAKE} tests) |
46 |
|
47 |
#------------------------------------------------------------------------- |
48 |
configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/config.h.in |
49 |
cd $(srcdir); |
50 |
./.prebuild |
51 |
|
52 |
config.status: |
53 |
if test -x config.status; then config.status --recheck; \ |
54 |
else $(SHELL) configure; fi |
55 |
|
56 |
autoconf/config.h.in: autoconf/configure.in |
57 |
cd $(srcdir); |
58 |
./.prebuild |
59 |
|
60 |
installdirs: |
61 |
$(MKDIR) $(DESTDIR)$(bindir) |
62 |
$(MKDIR) $(DESTDIR)$(mandir) |
63 |
|
64 |
install: installdirs |
65 |
@for I in $(subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@) || exit 1; done |
66 |
|
67 |
Makefiles: |
68 |
$(SHELL) config.status |
69 |
|
70 |
cleandir: realclean |
71 |
|
72 |
# distclean goal is for making a clean source tree, but if you have run |
73 |
# configure from a different directory, then doesn't destroy all your |
74 |
# hardly compiled and linked stuff. That's why there is always $(srcdir)/ |
75 |
# In that case most of those commands do nothing, except cleaning *~ |
76 |
# and cleaning source links. |
77 |
distclean: |
78 |
(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status libtool) |
79 |
@for I in $(allsubdirs); do (cd $$I; $(MAKE) $@) || exit 1; done |
80 |
(cd $(srcdir); $(RMF) Makefile autoconf/Make.common) |
81 |
|
82 |
distdir: |
83 |
cd doc && $(MAKE) distdepend |
84 |
rm -rf $(VERNAME) |
85 |
mkdir $(VERNAME) |
86 |
rsync -aR `cat MANIFEST` $(VERNAME)/. |
87 |
|
88 |
tar.gz: distdir |
89 |
tar cvf - $(VERNAME) | gzip -vf9 > $(VERNAME).tar.gz |
90 |
rm -rf $(VERNAME) |
91 |
|
92 |
tar.bz2: distdir |
93 |
tar cvf - $(VERNAME) | bzip2 -vf9 > $(VERNAME).tar.bz2 |
94 |
rm -rf $(VERNAME) |
95 |
|
96 |
dist: tar.bz2 |
97 |
|
98 |
# ------------------------------------------------------------------------ |