]>
Commit | Line | Data |
---|---|---|
fdbff003 A |
1 | Project=CoreOSMakefiles |
2 | ||
51ef2a1e A |
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 | |
fdbff003 | 11 | |
51ef2a1e A |
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 | |
fdbff003 | 25 | |
51ef2a1e A |
26 | installhdrs: |
27 | $(_v) echo No headers to install | |
28 | ||
29 | installsrc: | |
30 | install -d "$(SRCROOT)" | |
90a5ffcc | 31 | rsync -a --exclude=.svn --exclude=.git ./ "$(SRCROOT)" |
fdbff003 | 32 | |
51ef2a1e A |
33 | clean: |
34 | $(_v) echo Nothing to clean |