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 |
Makefiles: |
69 |
$(SHELL) config.status |
70 |
|
71 |
cleandir: realclean |
72 |
|
73 |
# distclean goal is for making a clean source tree, but if you have run |
74 |
# configure from a different directory, then doesn't destroy all your |
75 |
# hardly compiled and linked stuff. That's why there is always $(srcdir)/ |
76 |
# In that case most of those commands do nothing, except cleaning *~ |
77 |
# and cleaning source links. |
78 |
distclean: |
79 |
(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status libtool) |
80 |
@for I in $(allsubdirs); do (cd $$I; $(MAKE) $@) || exit 1; done |
81 |
(cd $(srcdir); $(RMF) Makefile autoconf/Make.common) |
82 |
|
83 |
distdir: |
84 |
cd doc && $(MAKE) distdepend |
85 |
rm -rf $(VERNAME) |
86 |
mkdir $(VERNAME) |
87 |
rsync -aR `cat MANIFEST` $(VERNAME)/. |
88 |
|
89 |
tar.gz: distdir |
90 |
tar cvf - $(VERNAME) | gzip -vf9 > $(VERNAME).tar.gz |
91 |
rm -rf $(VERNAME) |
92 |
|
93 |
tar.bz2: distdir |
94 |
tar cvf - $(VERNAME) | bzip2 -vf9 > $(VERNAME).tar.bz2 |
95 |
rm -rf $(VERNAME) |
96 |
|
97 |
dist: tar.bz2 |
98 |
|
99 |
# ------------------------------------------------------------------------ |