]> git.saurik.com Git - apple/coreosmakefiles.git/blob - Makefile
CoreOSMakefiles-64.tar.gz
[apple/coreosmakefiles.git] / Makefile
1 Project=CoreOSMakefiles
2
3 Destination = $(MAKEFILEPATH)/CoreOS
4 BSDMAKEDIR = /usr/share/mk/CoreOS
5 BSDSUFFIX = .mk
6 BSDDEFINE = BSDMAKESTYLE
7 GNUSUFFIX = .make
8 INBASENAMES = Commands Variables
9 INSUFFIX = .in
10 STANDARD = Standard
11
12 install:
13 @$(MAKE) installsrc SRCROOT=$(DSTROOT)$(Destination)
14 rm -f $(DSTROOT)$(Destination)/Makefile
15 mv -f $(DSTROOT)$(Destination)/bin $(DSTROOT)$(MAKEFILEPATH)
16 install -d $(DSTROOT)$(BSDMAKEDIR)/$(STANDARD)
17 @set -x && \
18 for i in $(INBASENAMES); do \
19 unifdef -U$(BSDDEFINE) -t $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(INSUFFIX) > $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(GNUSUFFIX); \
20 [ $$? -eq 1 ] || exit 1; \
21 unifdef -D$(BSDDEFINE) -t $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(INSUFFIX) > $(DSTROOT)$(BSDMAKEDIR)/$(STANDARD)/$$i$(BSDSUFFIX); \
22 [ $$? -eq 1 ] || exit 1; \
23 $(RM) -f $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(INSUFFIX) || exit 1; \
24 done
25
26 installhdrs:
27 $(_v) echo No headers to install
28
29 installsrc:
30 install -d "$(SRCROOT)"
31 rsync -a --exclude=.svn --exclude=.git ./ "$(SRCROOT)"
32
33 clean:
34 $(_v) echo Nothing to clean