1 Project=CoreOSMakefiles
3 Destination = $(MAKEFILEPATH)/CoreOS
4 BSDMAKEDIR = /usr/share/mk/CoreOS
6 BSDDEFINE = BSDMAKESTYLE
8 INBASENAMES = Commands Variables
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)
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; \
27 $(_v) echo No headers to install
30 install -d "$(SRCROOT)"
31 rsync -a --exclude=.svn --exclude=.git ./ "$(SRCROOT)"
34 $(_v) echo Nothing to clean