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