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