forked from freemint/qed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RULES
68 lines (55 loc) · 1.64 KB
/
RULES
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
# These are some standard rules common to all Makefiles.
include $(srcdir)/BINFILES
include $(srcdir)/SRCFILES
include $(srcdir)/EXTRAFILES
include $(srcdir)/MISCFILES
ifdef CPU
ifeq ($(CPU),v4e)
MODEL = -mcpu=5475
else
MODEL = -m68$(CPU)
endif
else
# leave empty/default
MODEL =
endif
all: all-recursive all-here
clean:: clean-recursive
rm -f *.o lib*.a *.tmp
rm -f core report nohup.out errlog
bakclean:: bakclean-recursive
rm -f *~ *#
rm -f *.orig *.rej
distclean:: clean-recursive clean
rm -rf .deps $(GENFILES)
install: install-recursive
uninstall: uninstall-recursive
DISTFILES = $(MISCFILES) $(SRCFILES)
distdir = $(top_builddir)/freemint-$(VERSION)/$(subdir)
distdir: $(DISTFILES) distdir-local
@for file in $(DISTFILES); do \
d=$(srcdir); \
test -d $$d/$$file \
|| test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2>/dev/null \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
done
list='$(SUBDIRS)'; for subdir in $$list; do \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
done
distdir-local:
all-recursive clean-recursive bakclean-recursive distclean-recursive \
install-recursive uninstall-recursive dist-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
list='$(SUBDIRS)'; for subdir in $$list; do \
target=`echo $@ | sed s/-recursive//`; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) -r $$target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"