File: Makefile.in

package info (click to toggle)
foxeye 0.12.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,012 kB
  • sloc: ansic: 62,635; sh: 5,228; makefile: 740; yacc: 291; tcl: 239; sed: 16
file content (104 lines) | stat: -rw-r--r-- 3,167 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# Makefile for base modules directory for recursive compilation.
#
# This file is part of FoxEye distribution.
# Copiright (C) 1999-2014 Andrej Gritsenko <andrej@rep.kiev.ua>

SHELL = @SHELL@
@FORCE_GMAKE@

LD_MODS = @LD_MODS@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..

DISTFILES = Makefile.in Makefile.mods.in

AUTOMAKE = @AUTOMAKE@

all check: Makefile Makefile.mods static

dvi installcheck:

clean:
	@for x in *; do \
	    test -d $$x && $(MAKE) -C $$x -f ../Makefile.mods clean || continue; \
	done
	rm -f *.o core *~ $(top_builddir)/core/static.h install-sh

distclean: clean
	rm -f Makefile Makefile.mods

modules install install-strip uninstall:
	@test -L install-sh || @LN_S@ $(top_srcdir)/install-sh .
	@if test "x$(LD_MODS)" = "x"; then \
	set fnord $(MAKEFLAGS); amf=$$2; \
	for subdir in *; do \
	    test -d $$subdir || continue; \
	    test "$$subdir" = "CVS" && continue; \
	    target='$@'; \
	    echo "Making $$target in $$subdir"; \
	    $(MAKE) -C $$subdir -f ../Makefile.mods $$target \
		|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"; fi

static: @EXTRA_HDR@
	@set fnord $(MAKEFLAGS); amf=$$2; \
	for subdir in *; do \
	    test -d $$subdir || continue; \
	    test "$$subdir" = "CVS" && continue; \
	    echo "Making all in $$subdir"; \
	    $(MAKE) -C $$subdir -f ../Makefile.mods all \
		|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
	cd $(top_builddir) \
	    && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

Makefile.mods: $(srcdir)/Makefile.mods.in  $(top_builddir)/config.status $(BUILT_SOURCES)
	cd $(top_builddir) \
	    && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

subdir = modules

dist distdir: Makefile Makefile.mods
	@for subdir in *; do \
	    test -d $$subdir || continue; \
	    test "$$subdir" = "CVS" \
	    || $(MAKE) -C $$subdir -f ../Makefile.mods distdir; \
	done
	@dists="$(DISTFILES)"; \
	for file in $$dists; do \
	    test -f $(distdir)/$$file || \
	    ln $(srcdir)/$$file $(distdir) 2> /dev/null \
	    || cp -p $(srcdir)/$$file $(distdir); \
	done

$(top_builddir)/core/static.h:
	@(echo "/* Generated file. Do not edit! */"; \
	    echo ""; \
	    echo "#ifndef _MODULES_C"; \
	    echo "#define ModuleInitFunc(a) SigFunction modinit_ ## a (char *);"; \
	    echo "#else"; \
	    echo "#undef ModuleInitFunc"; \
	    echo "#define ModuleInitFunc(a) { #a, modinit_ ## a },"; \
	    echo "struct modtable {"; \
	    echo " char *name;"; \
	    echo " SigFunction (*func) (char *);"; \
	    echo "};"; \
	    echo "struct modtable ModulesTable[] = {"; \
	    echo "#endif") >$@
	@for subdir in *; do \
	    test -d $$subdir || continue; \
	    test "$$subdir" = "CVS" \
	    || echo "ModuleInitFunc (`echo $$subdir | sed 's/-/_/'`)" >>$@; \
	done
	@(echo "#ifdef _MODULES_C"; \
	    echo "{ NULL, NULL }"; \
	    echo "};"; \
	    echo "#endif") >>$@

.PHONY: all static modules clean distclean install install-strip uninstall \
	dist distdir check dvi installcheck