Correct Makefile.am for ctie
@@ -34,7 +34,7 @@ | ||
34 | 34 | subdir = . |
35 | 35 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
36 | 36 | $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ |
37 | - ChangeLog INSTALL NEWS install-sh missing | |
37 | + ChangeLog INSTALL NEWS depcomp install-sh missing | |
38 | 38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
39 | 39 | am__aclocal_m4_deps = $(top_srcdir)/m4/progs.m4 \ |
40 | 40 | $(top_srcdir)/configure.ac |
@@ -14,6 +14,7 @@ | ||
14 | 14 | # PARTICULAR PURPOSE. |
15 | 15 | |
16 | 16 | @SET_MAKE@ |
17 | + | |
17 | 18 | VPATH = @srcdir@ |
18 | 19 | pkgdatadir = $(datadir)/@PACKAGE@ |
19 | 20 | pkgincludedir = $(includedir)/@PACKAGE@ |
@@ -31,6 +32,7 @@ | ||
31 | 32 | NORMAL_UNINSTALL = : |
32 | 33 | PRE_UNINSTALL = : |
33 | 34 | POST_UNINSTALL = : |
35 | +bin_PROGRAMS = ctie$(EXEEXT) | |
34 | 36 | subdir = ctie |
35 | 37 | DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ |
36 | 38 | ChangeLog |
@@ -42,8 +44,23 @@ | ||
42 | 44 | mkinstalldirs = $(install_sh) -d |
43 | 45 | CONFIG_CLEAN_FILES = |
44 | 46 | CONFIG_CLEAN_VPATH_FILES = |
45 | -SOURCES = | |
46 | -DIST_SOURCES = | |
47 | +am__installdirs = "$(DESTDIR)$(bindir)" | |
48 | +PROGRAMS = $(bin_PROGRAMS) | |
49 | +am_ctie_OBJECTS = ctie.$(OBJEXT) | |
50 | +ctie_OBJECTS = $(am_ctie_OBJECTS) | |
51 | +ctie_LDADD = $(LDADD) | |
52 | +DEFAULT_INCLUDES = -I.@am__isrc@ | |
53 | +depcomp = $(SHELL) $(top_srcdir)/depcomp | |
54 | +am__depfiles_maybe = depfiles | |
55 | +am__mv = mv -f | |
56 | +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
57 | + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
58 | +CCLD = $(CC) | |
59 | +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
60 | +SOURCES = $(ctie_SOURCES) | |
61 | +DIST_SOURCES = $(ctie_SOURCES) | |
62 | +ETAGS = etags | |
63 | +CTAGS = ctags | |
47 | 64 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
48 | 65 | ACLOCAL = @ACLOCAL@ |
49 | 66 | AMTAR = @AMTAR@ |
@@ -132,10 +149,11 @@ | ||
132 | 149 | top_build_prefix = @top_build_prefix@ |
133 | 150 | top_builddir = @top_builddir@ |
134 | 151 | top_srcdir = @top_srcdir@ |
135 | -srcs = ctie | |
152 | +ctie_SOURCES = ctie.c | |
136 | 153 | all: all-am |
137 | 154 | |
138 | 155 | .SUFFIXES: |
156 | +.SUFFIXES: .c .o .obj | |
139 | 157 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
140 | 158 | @for dep in $?; do \ |
141 | 159 | case '$(am__configure_deps)' in \ |
@@ -166,13 +184,121 @@ | ||
166 | 184 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) |
167 | 185 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
168 | 186 | $(am__aclocal_m4_deps): |
187 | +install-binPROGRAMS: $(bin_PROGRAMS) | |
188 | + @$(NORMAL_INSTALL) | |
189 | + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | |
190 | + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |
191 | + for p in $$list; do echo "$$p $$p"; done | \ | |
192 | + sed 's/$(EXEEXT)$$//' | \ | |
193 | + while read p p1; do if test -f $$p; \ | |
194 | + then echo "$$p"; echo "$$p"; else :; fi; \ | |
195 | + done | \ | |
196 | + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
197 | + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ | |
198 | + sed 'N;N;N;s,\n, ,g' | \ | |
199 | + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ | |
200 | + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | |
201 | + if ($$2 == $$4) files[d] = files[d] " " $$1; \ | |
202 | + else { print "f", $$3 "/" $$4, $$1; } } \ | |
203 | + END { for (d in files) print "f", d, files[d] }' | \ | |
204 | + while read type dir files; do \ | |
205 | + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | |
206 | + test -z "$$files" || { \ | |
207 | + echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ | |
208 | + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ | |
209 | + } \ | |
210 | + ; done | |
211 | + | |
212 | +uninstall-binPROGRAMS: | |
213 | + @$(NORMAL_UNINSTALL) | |
214 | + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |
215 | + files=`for p in $$list; do echo "$$p"; done | \ | |
216 | + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | |
217 | + -e 's/$$/$(EXEEXT)/' `; \ | |
218 | + test -n "$$list" || exit 0; \ | |
219 | + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ | |
220 | + cd "$(DESTDIR)$(bindir)" && rm -f $$files | |
221 | + | |
222 | +clean-binPROGRAMS: | |
223 | + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | |
224 | +ctie$(EXEEXT): $(ctie_OBJECTS) $(ctie_DEPENDENCIES) | |
225 | + @rm -f ctie$(EXEEXT) | |
226 | + $(LINK) $(ctie_OBJECTS) $(ctie_LDADD) $(LIBS) | |
227 | + | |
228 | +mostlyclean-compile: | |
229 | + -rm -f *.$(OBJEXT) | |
230 | + | |
231 | +distclean-compile: | |
232 | + -rm -f *.tab.c | |
233 | + | |
234 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctie.Po@am__quote@ | |
235 | + | |
236 | +.c.o: | |
237 | +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
238 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
239 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
240 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
241 | +@am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
242 | + | |
243 | +.c.obj: | |
244 | +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
245 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
246 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
247 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
248 | +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
249 | + | |
250 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
251 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
252 | + unique=`for i in $$list; do \ | |
253 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
254 | + done | \ | |
255 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
256 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
257 | + mkid -fID $$unique | |
169 | 258 | tags: TAGS |
170 | -TAGS: | |
171 | 259 | |
260 | +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
261 | + $(TAGS_FILES) $(LISP) | |
262 | + set x; \ | |
263 | + here=`pwd`; \ | |
264 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
265 | + unique=`for i in $$list; do \ | |
266 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
267 | + done | \ | |
268 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
269 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
270 | + shift; \ | |
271 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
272 | + test -n "$$unique" || unique=$$empty_fix; \ | |
273 | + if test $$# -gt 0; then \ | |
274 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
275 | + "$$@" $$unique; \ | |
276 | + else \ | |
277 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
278 | + $$unique; \ | |
279 | + fi; \ | |
280 | + fi | |
172 | 281 | ctags: CTAGS |
173 | -CTAGS: | |
282 | +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
283 | + $(TAGS_FILES) $(LISP) | |
284 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
285 | + unique=`for i in $$list; do \ | |
286 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
287 | + done | \ | |
288 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
289 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
290 | + test -z "$(CTAGS_ARGS)$$unique" \ | |
291 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
292 | + $$unique | |
174 | 293 | |
294 | +GTAGS: | |
295 | + here=`$(am__cd) $(top_builddir) && pwd` \ | |
296 | + && $(am__cd) $(top_srcdir) \ | |
297 | + && gtags -i $(GTAGS_ARGS) "$$here" | |
175 | 298 | |
299 | +distclean-tags: | |
300 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
301 | + | |
176 | 302 | distdir: $(DISTFILES) |
177 | 303 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
178 | 304 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
@@ -205,8 +331,11 @@ | ||
205 | 331 | done |
206 | 332 | check-am: all-am |
207 | 333 | check: check-am |
208 | -all-am: Makefile | |
334 | +all-am: Makefile $(PROGRAMS) | |
209 | 335 | installdirs: |
336 | + for dir in "$(DESTDIR)$(bindir)"; do \ | |
337 | + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
338 | + done | |
210 | 339 | install: install-am |
211 | 340 | install-exec: install-exec-am |
212 | 341 | install-data: install-data-am |
@@ -234,11 +363,13 @@ | ||
234 | 363 | @echo "it deletes files that may require special tools to rebuild." |
235 | 364 | clean: clean-am |
236 | 365 | |
237 | -clean-am: clean-generic mostlyclean-am | |
366 | +clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | |
238 | 367 | |
239 | 368 | distclean: distclean-am |
369 | + -rm -rf ./$(DEPDIR) | |
240 | 370 | -rm -f Makefile |
241 | -distclean-am: clean-am distclean-generic | |
371 | +distclean-am: clean-am distclean-compile distclean-generic \ | |
372 | + distclean-tags | |
242 | 373 | |
243 | 374 | dvi: dvi-am |
244 | 375 |
@@ -258,7 +389,7 @@ | ||
258 | 389 | |
259 | 390 | install-dvi-am: |
260 | 391 | |
261 | -install-exec-am: | |
392 | +install-exec-am: install-binPROGRAMS | |
262 | 393 | |
263 | 394 | install-html: install-html-am |
264 | 395 |
@@ -281,12 +412,13 @@ | ||
281 | 412 | installcheck-am: |
282 | 413 | |
283 | 414 | maintainer-clean: maintainer-clean-am |
415 | + -rm -rf ./$(DEPDIR) | |
284 | 416 | -rm -f Makefile |
285 | 417 | maintainer-clean-am: distclean-am maintainer-clean-generic |
286 | 418 | |
287 | 419 | mostlyclean: mostlyclean-am |
288 | 420 | |
289 | -mostlyclean-am: mostlyclean-generic | |
421 | +mostlyclean-am: mostlyclean-compile mostlyclean-generic | |
290 | 422 | |
291 | 423 | pdf: pdf-am |
292 | 424 |
@@ -296,28 +428,24 @@ | ||
296 | 428 | |
297 | 429 | ps-am: |
298 | 430 | |
299 | -uninstall-am: | |
431 | +uninstall-am: uninstall-binPROGRAMS | |
300 | 432 | |
301 | 433 | .MAKE: install-am install-strip |
302 | 434 | |
303 | -.PHONY: all all-am check check-am clean clean-generic distclean \ | |
304 | - distclean-generic distdir dvi dvi-am html html-am info info-am \ | |
305 | - install install-am install-data install-data-am install-dvi \ | |
306 | - install-dvi-am install-exec install-exec-am install-html \ | |
307 | - install-html-am install-info install-info-am install-man \ | |
308 | - install-pdf install-pdf-am install-ps install-ps-am \ | |
309 | - install-strip installcheck installcheck-am installdirs \ | |
310 | - maintainer-clean maintainer-clean-generic mostlyclean \ | |
311 | - mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am | |
435 | +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | |
436 | + clean-generic ctags distclean distclean-compile \ | |
437 | + distclean-generic distclean-tags distdir dvi dvi-am html \ | |
438 | + html-am info info-am install install-am install-binPROGRAMS \ | |
439 | + install-data install-data-am install-dvi install-dvi-am \ | |
440 | + install-exec install-exec-am install-html install-html-am \ | |
441 | + install-info install-info-am install-man install-pdf \ | |
442 | + install-pdf-am install-ps install-ps-am install-strip \ | |
443 | + installcheck installcheck-am installdirs maintainer-clean \ | |
444 | + maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
445 | + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | |
446 | + uninstall-am uninstall-binPROGRAMS | |
312 | 447 | |
313 | 448 | |
314 | -all: $(srcs) | |
315 | - | |
316 | -ctie: ctie.o | |
317 | - $(CC) $(CFLAGS) $^ -o $@ | |
318 | -ctie.o: $(srcdir)/ctie.c | |
319 | - $(CC) $(CFLAGS) -c $^ | |
320 | - | |
321 | 449 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
322 | 450 | # Otherwise a system limit (for SysV at least) may be exceeded. |
323 | 451 | .NOEXPORT: |
@@ -1,9 +1,2 @@ | ||
1 | -srcdir = @srcdir@ | |
2 | -srcs = ctie | |
3 | - | |
4 | -all: $(srcs) | |
5 | - | |
6 | -ctie: ctie.o | |
7 | - $(CC) $(CFLAGS) $^ -o $@ | |
8 | -ctie.o: $(srcdir)/ctie.c | |
9 | - $(CC) $(CFLAGS) -c $^ | |
1 | +bin_PROGRAMS = ctie | |
2 | +ctie_SOURCES = ctie.c |
@@ -34,7 +34,7 @@ | ||
34 | 34 | subdir = . |
35 | 35 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
36 | 36 | $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ |
37 | - ChangeLog INSTALL NEWS install-sh missing | |
37 | + ChangeLog INSTALL NEWS depcomp install-sh missing | |
38 | 38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
39 | 39 | am__aclocal_m4_deps = $(top_srcdir)/m4/progs.m4 \ |
40 | 40 | $(top_srcdir)/configure.ac |
@@ -14,6 +14,7 @@ | ||
14 | 14 | # PARTICULAR PURPOSE. |
15 | 15 | |
16 | 16 | @SET_MAKE@ |
17 | + | |
17 | 18 | VPATH = @srcdir@ |
18 | 19 | pkgdatadir = $(datadir)/@PACKAGE@ |
19 | 20 | pkgincludedir = $(includedir)/@PACKAGE@ |
@@ -31,6 +32,7 @@ | ||
31 | 32 | NORMAL_UNINSTALL = : |
32 | 33 | PRE_UNINSTALL = : |
33 | 34 | POST_UNINSTALL = : |
35 | +bin_PROGRAMS = ctie$(EXEEXT) | |
34 | 36 | subdir = ctie |
35 | 37 | DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ |
36 | 38 | ChangeLog |
@@ -42,8 +44,23 @@ | ||
42 | 44 | mkinstalldirs = $(install_sh) -d |
43 | 45 | CONFIG_CLEAN_FILES = |
44 | 46 | CONFIG_CLEAN_VPATH_FILES = |
45 | -SOURCES = | |
46 | -DIST_SOURCES = | |
47 | +am__installdirs = "$(DESTDIR)$(bindir)" | |
48 | +PROGRAMS = $(bin_PROGRAMS) | |
49 | +am_ctie_OBJECTS = ctie.$(OBJEXT) | |
50 | +ctie_OBJECTS = $(am_ctie_OBJECTS) | |
51 | +ctie_LDADD = $(LDADD) | |
52 | +DEFAULT_INCLUDES = -I.@am__isrc@ | |
53 | +depcomp = $(SHELL) $(top_srcdir)/depcomp | |
54 | +am__depfiles_maybe = depfiles | |
55 | +am__mv = mv -f | |
56 | +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
57 | + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
58 | +CCLD = $(CC) | |
59 | +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
60 | +SOURCES = $(ctie_SOURCES) | |
61 | +DIST_SOURCES = $(ctie_SOURCES) | |
62 | +ETAGS = etags | |
63 | +CTAGS = ctags | |
47 | 64 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
48 | 65 | ACLOCAL = @ACLOCAL@ |
49 | 66 | AMTAR = @AMTAR@ |
@@ -132,10 +149,11 @@ | ||
132 | 149 | top_build_prefix = @top_build_prefix@ |
133 | 150 | top_builddir = @top_builddir@ |
134 | 151 | top_srcdir = @top_srcdir@ |
135 | -srcs = ctie | |
152 | +ctie_SOURCES = ctie.c | |
136 | 153 | all: all-am |
137 | 154 | |
138 | 155 | .SUFFIXES: |
156 | +.SUFFIXES: .c .o .obj | |
139 | 157 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
140 | 158 | @for dep in $?; do \ |
141 | 159 | case '$(am__configure_deps)' in \ |
@@ -166,13 +184,121 @@ | ||
166 | 184 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) |
167 | 185 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
168 | 186 | $(am__aclocal_m4_deps): |
187 | +install-binPROGRAMS: $(bin_PROGRAMS) | |
188 | + @$(NORMAL_INSTALL) | |
189 | + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | |
190 | + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |
191 | + for p in $$list; do echo "$$p $$p"; done | \ | |
192 | + sed 's/$(EXEEXT)$$//' | \ | |
193 | + while read p p1; do if test -f $$p; \ | |
194 | + then echo "$$p"; echo "$$p"; else :; fi; \ | |
195 | + done | \ | |
196 | + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
197 | + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ | |
198 | + sed 'N;N;N;s,\n, ,g' | \ | |
199 | + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ | |
200 | + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | |
201 | + if ($$2 == $$4) files[d] = files[d] " " $$1; \ | |
202 | + else { print "f", $$3 "/" $$4, $$1; } } \ | |
203 | + END { for (d in files) print "f", d, files[d] }' | \ | |
204 | + while read type dir files; do \ | |
205 | + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | |
206 | + test -z "$$files" || { \ | |
207 | + echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ | |
208 | + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ | |
209 | + } \ | |
210 | + ; done | |
211 | + | |
212 | +uninstall-binPROGRAMS: | |
213 | + @$(NORMAL_UNINSTALL) | |
214 | + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | |
215 | + files=`for p in $$list; do echo "$$p"; done | \ | |
216 | + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | |
217 | + -e 's/$$/$(EXEEXT)/' `; \ | |
218 | + test -n "$$list" || exit 0; \ | |
219 | + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ | |
220 | + cd "$(DESTDIR)$(bindir)" && rm -f $$files | |
221 | + | |
222 | +clean-binPROGRAMS: | |
223 | + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | |
224 | +ctie$(EXEEXT): $(ctie_OBJECTS) $(ctie_DEPENDENCIES) | |
225 | + @rm -f ctie$(EXEEXT) | |
226 | + $(LINK) $(ctie_OBJECTS) $(ctie_LDADD) $(LIBS) | |
227 | + | |
228 | +mostlyclean-compile: | |
229 | + -rm -f *.$(OBJEXT) | |
230 | + | |
231 | +distclean-compile: | |
232 | + -rm -f *.tab.c | |
233 | + | |
234 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctie.Po@am__quote@ | |
235 | + | |
236 | +.c.o: | |
237 | +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
238 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
239 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
240 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
241 | +@am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
242 | + | |
243 | +.c.obj: | |
244 | +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
245 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
246 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
247 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
248 | +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
249 | + | |
250 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
251 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
252 | + unique=`for i in $$list; do \ | |
253 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
254 | + done | \ | |
255 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
256 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
257 | + mkid -fID $$unique | |
169 | 258 | tags: TAGS |
170 | -TAGS: | |
171 | 259 | |
260 | +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
261 | + $(TAGS_FILES) $(LISP) | |
262 | + set x; \ | |
263 | + here=`pwd`; \ | |
264 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
265 | + unique=`for i in $$list; do \ | |
266 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
267 | + done | \ | |
268 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
269 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
270 | + shift; \ | |
271 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
272 | + test -n "$$unique" || unique=$$empty_fix; \ | |
273 | + if test $$# -gt 0; then \ | |
274 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
275 | + "$$@" $$unique; \ | |
276 | + else \ | |
277 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
278 | + $$unique; \ | |
279 | + fi; \ | |
280 | + fi | |
172 | 281 | ctags: CTAGS |
173 | -CTAGS: | |
282 | +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
283 | + $(TAGS_FILES) $(LISP) | |
284 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
285 | + unique=`for i in $$list; do \ | |
286 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
287 | + done | \ | |
288 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
289 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
290 | + test -z "$(CTAGS_ARGS)$$unique" \ | |
291 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
292 | + $$unique | |
174 | 293 | |
294 | +GTAGS: | |
295 | + here=`$(am__cd) $(top_builddir) && pwd` \ | |
296 | + && $(am__cd) $(top_srcdir) \ | |
297 | + && gtags -i $(GTAGS_ARGS) "$$here" | |
175 | 298 | |
299 | +distclean-tags: | |
300 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
301 | + | |
176 | 302 | distdir: $(DISTFILES) |
177 | 303 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
178 | 304 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
@@ -205,8 +331,11 @@ | ||
205 | 331 | done |
206 | 332 | check-am: all-am |
207 | 333 | check: check-am |
208 | -all-am: Makefile | |
334 | +all-am: Makefile $(PROGRAMS) | |
209 | 335 | installdirs: |
336 | + for dir in "$(DESTDIR)$(bindir)"; do \ | |
337 | + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
338 | + done | |
210 | 339 | install: install-am |
211 | 340 | install-exec: install-exec-am |
212 | 341 | install-data: install-data-am |
@@ -234,11 +363,13 @@ | ||
234 | 363 | @echo "it deletes files that may require special tools to rebuild." |
235 | 364 | clean: clean-am |
236 | 365 | |
237 | -clean-am: clean-generic mostlyclean-am | |
366 | +clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | |
238 | 367 | |
239 | 368 | distclean: distclean-am |
369 | + -rm -rf ./$(DEPDIR) | |
240 | 370 | -rm -f Makefile |
241 | -distclean-am: clean-am distclean-generic | |
371 | +distclean-am: clean-am distclean-compile distclean-generic \ | |
372 | + distclean-tags | |
242 | 373 | |
243 | 374 | dvi: dvi-am |
244 | 375 |
@@ -258,7 +389,7 @@ | ||
258 | 389 | |
259 | 390 | install-dvi-am: |
260 | 391 | |
261 | -install-exec-am: | |
392 | +install-exec-am: install-binPROGRAMS | |
262 | 393 | |
263 | 394 | install-html: install-html-am |
264 | 395 |
@@ -281,12 +412,13 @@ | ||
281 | 412 | installcheck-am: |
282 | 413 | |
283 | 414 | maintainer-clean: maintainer-clean-am |
415 | + -rm -rf ./$(DEPDIR) | |
284 | 416 | -rm -f Makefile |
285 | 417 | maintainer-clean-am: distclean-am maintainer-clean-generic |
286 | 418 | |
287 | 419 | mostlyclean: mostlyclean-am |
288 | 420 | |
289 | -mostlyclean-am: mostlyclean-generic | |
421 | +mostlyclean-am: mostlyclean-compile mostlyclean-generic | |
290 | 422 | |
291 | 423 | pdf: pdf-am |
292 | 424 |
@@ -296,28 +428,24 @@ | ||
296 | 428 | |
297 | 429 | ps-am: |
298 | 430 | |
299 | -uninstall-am: | |
431 | +uninstall-am: uninstall-binPROGRAMS | |
300 | 432 | |
301 | 433 | .MAKE: install-am install-strip |
302 | 434 | |
303 | -.PHONY: all all-am check check-am clean clean-generic distclean \ | |
304 | - distclean-generic distdir dvi dvi-am html html-am info info-am \ | |
305 | - install install-am install-data install-data-am install-dvi \ | |
306 | - install-dvi-am install-exec install-exec-am install-html \ | |
307 | - install-html-am install-info install-info-am install-man \ | |
308 | - install-pdf install-pdf-am install-ps install-ps-am \ | |
309 | - install-strip installcheck installcheck-am installdirs \ | |
310 | - maintainer-clean maintainer-clean-generic mostlyclean \ | |
311 | - mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am | |
435 | +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | |
436 | + clean-generic ctags distclean distclean-compile \ | |
437 | + distclean-generic distclean-tags distdir dvi dvi-am html \ | |
438 | + html-am info info-am install install-am install-binPROGRAMS \ | |
439 | + install-data install-data-am install-dvi install-dvi-am \ | |
440 | + install-exec install-exec-am install-html install-html-am \ | |
441 | + install-info install-info-am install-man install-pdf \ | |
442 | + install-pdf-am install-ps install-ps-am install-strip \ | |
443 | + installcheck installcheck-am installdirs maintainer-clean \ | |
444 | + maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
445 | + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | |
446 | + uninstall-am uninstall-binPROGRAMS | |
312 | 447 | |
313 | 448 | |
314 | -all: $(srcs) | |
315 | - | |
316 | -ctie: ctie.o | |
317 | - $(CC) $(CFLAGS) $^ -o $@ | |
318 | -ctie.o: $(srcdir)/ctie.c | |
319 | - $(CC) $(CFLAGS) -c $^ | |
320 | - | |
321 | 449 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
322 | 450 | # Otherwise a system limit (for SysV at least) may be exceeded. |
323 | 451 | .NOEXPORT: |
@@ -1,9 +1,2 @@ | ||
1 | -srcdir = @srcdir@ | |
2 | -srcs = ctie | |
3 | - | |
4 | -all: $(srcs) | |
5 | - | |
6 | -ctie: ctie.o | |
7 | - $(CC) $(CFLAGS) $^ -o $@ | |
8 | -ctie.o: $(srcdir)/ctie.c | |
9 | - $(CC) $(CFLAGS) -c $^ | |
1 | +bin_PROGRAMS = ctie | |
2 | +ctie_SOURCES = ctie.c |