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
|
#
# Ok this is taken from an automaked file and tweaked out
#
include platform-settings
ifeq ($(__CYGWIN__),1)
ifeq ($(MAKECMDGOALS), single)
SUBDIRS:=jabberd/lib pthsock xdb_file dnsrv jsm dialback jabberd
else
ifeq ($(MAKECMDGOALS), static)
SUBDIRS:=jabberd/lib pthsock xdb_file dnsrv jsm dialback jabberd
else
SUBDIRS:=jabberd pthsock xdb_file dnsrv jsm dialback
endif
endif
else
SUBDIRS=pthsock xdb_file dnsrv jsm dialback jabberd
endif
all: all-recursive
clean: clean-recursive
static: static-recursive
single: single-recursive
install:
printf "\n\nNo actual make install, you just run it out of the directory!\n"
all-local:
install-local:
static-local:
single-local:
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive single-recursive static-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
if test "$@" = "single-recursive"; then \
export ISSINGLE=1; \
fi; \
if test "$@" = "static-recursive"; then \
export ISSTATIC=1; \
fi; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-local"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) "$$target-local" || exit 1; \
fi; test -z "$$fail"
clean-local:
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \
done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-local"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
|