-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
##
# Top-level wrapper Makefile for zip and unzip tools
##
PROJECT=zip
COMPONENTS=zip unzip
SRCROOT=$(shell pwd)
OBJROOT?=/tmp/$(PROJECT).obj
SYMROOT?=/tmp/$(PROJECT).sym
DSTROOT?=/tmp/$(PROJECT).dst
OSVERSIONS = /usr/local/OpenSourceVersions
.PHONY: installsrc install clean installhdrs builddirs
ifndef CoreOSMakefiles
CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
endif
include $(CoreOSMakefiles)/Standard/Standard.make
all: install
installsrc:
$(MKDIR) $(SRCROOT)
$(PAX) -rw . $(SRCROOT)
install installhdrs:: $(OBJROOT) $(SYMROOT) $(DSTROOT)
install:: builddirs ossinfo
install clean installhdrs::
for proj in $(COMPONENTS) ; do \
( cd $${proj} && $(MAKE) $@ $(MAKEFLAGS) SRCROOT=$(SRCROOT)/$${proj} \
OBJROOT=$(OBJROOT)/$${proj} SYMROOT=$(SYMROOT)/$${proj} \
DSTROOT=$(DSTROOT) ) || exit 1; \
done
$(OBJROOT) $(SYMROOT) $(DSTROOT):
$(_v) $(MKDIR) $@
builddirs: $(OBJROOT) $(SYMROOT)
for proj in $(COMPONENTS) ; do \
$(MKDIR) $(OBJROOT)/$${proj}; \
$(MKDIR) $(SYMROOT)/$${proj}; \
done
ossinfo: builddirs
$(MKDIR) $(DSTROOT)/$(OSVERSIONS)
$(INSTALL_FILE) $(SRCROOT)/$(PROJECT).plist $(DSTROOT)/$(OSVERSIONS)/$(PROJECT).plist