… | |
… | |
28 | TBL = @TBL@ |
28 | TBL = @TBL@ |
29 | PERL = @PERL@ |
29 | PERL = @PERL@ |
30 | INSTALL = @INSTALL@ |
30 | INSTALL = @INSTALL@ |
31 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
31 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
32 | INSTALL_DATA = @INSTALL@ -m 644 |
32 | INSTALL_DATA = @INSTALL@ -m 644 |
33 | CXXFLAGS = @CXXFLAGS@ |
33 | CXXFLAGS = @CXXFLAGS@ |
34 | CPPFLAGS = @CPPFLAGS@ @XPM_CPPFLAGS@ |
34 | CPPFLAGS = @CPPFLAGS@ @XPM_CPPFLAGS@ |
35 | LDFLAGS = @LDFLAGS@ |
35 | LDFLAGS = @LDFLAGS@ |
36 | DEFS = @DEFS@ |
36 | DEFS = @DEFS@ |
37 | LIBS = @LIBS@ |
37 | LIBS = @LIBS@ |
38 | DINCLUDE = @DINCLUDE@ |
38 | DINCLUDE = @DINCLUDE@ |
… | |
… | |
44 | |
44 | |
45 | VERNAME = rxvt-unicode-$(VERSION) |
45 | VERNAME = rxvt-unicode-$(VERSION) |
46 | |
46 | |
47 | srcdir = @srcdir@ |
47 | srcdir = @srcdir@ |
48 | VPATH = @srcdir@ |
48 | VPATH = @srcdir@ |
49 | .PATH: @srcdir@ |
|
|
50 | |
49 | |
51 | first_rule: all |
50 | first_rule: all |
52 | dummy: |
51 | dummy: |
53 | |
52 | |
54 | subdirs = src doc |
53 | subdirs = src doc |
55 | allsubdirs = $(subdirs) |
|
|
56 | |
|
|
57 | DIST = INSTALL README.configure configure Makefile Makefile.in ChangeLog |
|
|
58 | |
54 | |
59 | MKDIR = $(srcdir)/mkinstalldirs |
55 | MKDIR = $(srcdir)/mkinstalldirs |
60 | |
56 | |
61 | #------------------------------------------------------------------------- |
57 | #------------------------------------------------------------------------- |
62 | |
58 | |
63 | all allbin alldoc tags: |
59 | all allbin alldoc tags: |
64 | @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done |
60 | @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done |
65 | |
61 | |
66 | realclean: clean |
62 | distclean realclean: distclean-local |
67 | rm -f config.h config.status config.log libtool |
|
|
68 | |
63 | |
69 | clean: |
64 | clean distclean realclean: |
70 | rm -f *~ config.cache |
|
|
71 | rm -f -r autom4te.cache |
|
|
72 | @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done |
65 | @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done |
73 | |
66 | |
74 | # |
67 | # |
75 | # entry points for other programs |
68 | # entry points for other programs |
76 | # |
69 | # |
77 | rxvt: |
70 | rxvt: |
78 | (cd src; ${MAKE}) |
71 | (cd src; ${MAKE}) |
79 | |
|
|
80 | tests: |
|
|
81 | (cd src/test; ${MAKE} tests) |
|
|
82 | |
72 | |
83 | #------------------------------------------------------------------------- |
73 | #------------------------------------------------------------------------- |
84 | configure: configure.ac aclocal.m4 config.h.in |
74 | configure: configure.ac aclocal.m4 config.h.in |
85 | cd $(srcdir); ./autogen.sh |
75 | cd $(srcdir); ./autogen.sh |
86 | |
76 | |
… | |
… | |
104 | Makefiles: |
94 | Makefiles: |
105 | $(SHELL) config.status |
95 | $(SHELL) config.status |
106 | |
96 | |
107 | cleandir: realclean |
97 | cleandir: realclean |
108 | |
98 | |
109 | # distclean goal is for making a clean source tree, but if you have run |
|
|
110 | # configure from a different directory, then doesn't destroy all your |
|
|
111 | # hardly compiled and linked stuff. That's why there is always $(srcdir)/ |
|
|
112 | # In that case most of those commands do nothing, except cleaning *~ |
|
|
113 | # and cleaning source links. |
|
|
114 | distclean: |
99 | distclean-local: |
115 | (cd $(srcdir); rm -f *~ config.cache config.h config.log config.status libtool) |
100 | rm -f *~ config.cache config.h config.log config.status libtool |
116 | @for I in $(allsubdirs); do (cd $$I; $(MAKE) $@) || exit 1; done |
101 | rm -f Makefile |
117 | (cd $(srcdir); rm -f Makefile) |
|
|
118 | |
102 | |
119 | distdir: |
103 | distdir: |
120 | cd doc && $(MAKE) distdepend |
104 | cd doc && $(MAKE) distdepend |
121 | cd src && $(MAKE) depend |
105 | cd src && $(MAKE) depend |
122 | rm -rf $(VERNAME) |
106 | rm -rf $(VERNAME) |