… | |
… | |
33 | RECURSIVE_TARGETS = all allbin alldoc tags clean distclean realclean install |
33 | RECURSIVE_TARGETS = all allbin alldoc tags clean distclean realclean install |
34 | |
34 | |
35 | #------------------------------------------------------------------------- |
35 | #------------------------------------------------------------------------- |
36 | |
36 | |
37 | $(RECURSIVE_TARGETS): |
37 | $(RECURSIVE_TARGETS): |
38 | @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done |
38 | @for I in $(subdirs); do (cd $$I; $(MAKE) $@) || exit 1; done |
39 | |
39 | |
40 | distclean realclean: distclean-local |
40 | distclean realclean: distclean-local |
41 | |
41 | |
42 | # |
42 | # |
43 | # entry points for other programs |
43 | # entry points for other programs |
44 | # |
44 | # |
45 | rxvt: |
45 | rxvt: |
46 | (cd src; ${MAKE}) |
46 | (cd src; $(MAKE)) |
47 | |
47 | |
48 | #------------------------------------------------------------------------- |
48 | #------------------------------------------------------------------------- |
49 | configure: configure.ac aclocal.m4 config.h.in |
49 | configure: configure.ac aclocal.m4 libev/libev.m4 libptytty/ptytty.m4 |
50 | cd $(srcdir); ./autogen.sh |
50 | cd $(srcdir); ./autogen.sh |
51 | |
51 | |
52 | config.status: |
52 | config.status: |
53 | if test -x config.status; then config.status --recheck; \ |
53 | if test -x config.status; then config.status --recheck; \ |
54 | else $(SHELL) configure; fi |
54 | else $(SHELL) configure; fi |
55 | |
55 | |
56 | config.h.in: configure.ac |
56 | config.h.in: configure.ac aclocal.m4 libev/libev.m4 libptytty/ptytty.m4 |
57 | cd $(srcdir); ./autogen.sh |
57 | cd $(srcdir); ./autogen.sh |
58 | |
58 | |
59 | check: all |
59 | check: all |
60 | echo "no tests" |
60 | echo "no tests" |
61 | |
61 | |
… | |
… | |
63 | $(SHELL) config.status |
63 | $(SHELL) config.status |
64 | |
64 | |
65 | cleandir: realclean |
65 | cleandir: realclean |
66 | |
66 | |
67 | distclean-local: |
67 | distclean-local: |
68 | rm -f *~ config.cache config.h config.log config.status libtool |
68 | rm -f config.cache config.h config.log config.status |
69 | rm -f Makefile |
69 | rm -f Makefile |
70 | |
70 | |
71 | distdir: |
71 | distdir: |
72 | cd doc && $(MAKE) distdepend |
72 | cd doc && $(MAKE) distdepend |
73 | cd src && $(MAKE) depend |
73 | cd src && $(MAKE) depend |
74 | rm -rf $(VERNAME) |
74 | rm -rf $(VERNAME) |
75 | mkdir $(VERNAME) |
75 | mkdir $(VERNAME) |
76 | rsync -aR `cat MANIFEST` $(VERNAME)/. |
76 | rsync -aR --copy-unsafe-links `cat MANIFEST` $(VERNAME)/. |
77 | |
77 | |
78 | tar.gz: distdir |
78 | tar.gz: distdir |
79 | tar cvf - $(VERNAME) | gzip -vf9 > $(VERNAME).tar.gz |
79 | tar cvf - $(VERNAME) | gzip -vf9 > $(VERNAME).tar.gz |
80 | rm -rf $(VERNAME) |
80 | rm -rf $(VERNAME) |
81 | |
81 | |