forked from apple-oss-distributions/CoreOSMakefiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 798 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 798 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
25
26
27
28
29
Project=CoreOSMakefiles
Destination = $(DEVELOPER_DIR)/Makefiles/CoreOS
BSDSUFFIX = .mk
BSDDEFINE = BSDMAKESTYLE
GNUSUFFIX = .make
INBASENAMES = Commands Variables
INSUFFIX = .in
STANDARD = Standard
install:
@$(MAKE) installsrc SRCROOT=$(DSTROOT)$(Destination)
rm -f $(DSTROOT)$(Destination)/Makefile
@set -x && \
for i in $(INBASENAMES); do \
unifdef -U$(BSDDEFINE) -t $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(INSUFFIX) > $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(GNUSUFFIX); \
[ $$? -eq 1 ] || exit 1; \
$(RM) -f $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(INSUFFIX) || exit 1; \
done
installhdrs:
$(_v) echo No headers to install
installsrc:
install -d "$(SRCROOT)"
rsync -a --exclude=.svn --exclude=.git ./ "$(SRCROOT)"
clean:
$(_v) echo Nothing to clean