-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
37 lines (31 loc) · 835 Bytes
/
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
COMPONENT_NAME:=magento2-module-inpost
COMPONENT:=michalbiarda/magento2-module-inpost
SKELETON:[email protected]:orbainternalprojects/skeleton.git
TARGET_PATH:=source/packages/$(COMPONENT_NAME)
MKTEMP:=mktemp -d
TMPDIR:=$(shell $(MKTEMP))
ARCHIVE:=$(TMPDIR)/archive.tar.gz
CP:=cp -R
RM:=rm -rf
TAR:=tar
GIT:=git
MKDIR=mkdir -p
#@todo handle windows
.PHONY: all
all:
$(info Running)
$(info $(TMPDIR))
$(TAR) -czvf $(ARCHIVE) .
$(RM) ..?* .[!.]* *
$(GIT) clone $(SKELETON) .
$(MAKE) new \
project=$(COMPONENT_NAME) \
version=2.3.5-p2 \
edition=community \
unit_cases=packages/$(COMPONENT_NAME)/Test/Unit \
integration_cases=packages/$(COMPONENT_NAME)/Test/Integration \
ca=0
$(MKDIR) $(TARGET_PATH)
$(TAR) -xzvf $(ARCHIVE) -C $(TARGET_PATH)
$(RM) $(TMPDIR)
# $(MAKE) run cmd="composer\ require\ $(COMPONENT)"