]> git.saurik.com Git - apple/coreosmakefiles.git/blame - Makefile
CoreOSMakefiles-64.1.tar.gz
[apple/coreosmakefiles.git] / Makefile
CommitLineData
fdbff003
A
1Project=CoreOSMakefiles
2
51ef2a1e
A
3Destination = $(MAKEFILEPATH)/CoreOS
4BSDMAKEDIR = /usr/share/mk/CoreOS
5BSDSUFFIX = .mk
6BSDDEFINE = BSDMAKESTYLE
7GNUSUFFIX = .make
8INBASENAMES = Commands Variables
9INSUFFIX = .in
10STANDARD = Standard
fdbff003 11
51ef2a1e
A
12install:
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
fdbff003 25
51ef2a1e
A
26installhdrs:
27 $(_v) echo No headers to install
28
29installsrc:
30 install -d "$(SRCROOT)"
90a5ffcc 31 rsync -a --exclude=.svn --exclude=.git ./ "$(SRCROOT)"
fdbff003 32
51ef2a1e
A
33clean:
34 $(_v) echo Nothing to clean