forked from freemint/mintlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbindist
More file actions
25 lines (21 loc) · 693 Bytes
/
bindist
File metadata and controls
25 lines (21 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# These are some additional rules for building a binary distribution in a
# subdirectory Makefiles.
BINDISTFILES = $(MISCFILES) $(BINFILES)
bindistdir = $(binbasedir)/$(subdir)
bindistdir: $(DISTFILES)
test -d $(bindistdir) \
|| mkdir $(bindistdir) \
|| exit 1; \
chmod 777 $(bindistdir)
@for file in $(BINDISTFILES); do \
d=$(srcdir); \
test -d $$d/$$file \
|| test -f $(bindistdir)/$$file \
|| ln $$d/$$file $(bindistdir)/$$file \
|| cp -p $$d/$$file $(bindistdir)/$$file \
|| exit 1; \
done
@list='$(SUBDIRS)'; for subdir in $$list; do \
(cd $$subdir && $(MAKE) top_distdir=../$(bindistdir) binbasedir=../$(bindistdir) bindistdir) \
|| exit 1; \
done