forked from ebaschiera/simplify-magento-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 680 Bytes
/
Makefile
File metadata and controls
23 lines (19 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Test for modules/foo
ifneq ("$(wildcard ./../ambassador/Makefile)","")
MOD_PATH = $(abspath ./../ambassador)
BIN_PATH = $(abspath ./../../vendor/bin)
endif
# Test for vendor/foo/bar
ifneq ("$(wildcard ./../../ontap/ambassador/Makefile)","")
MOD_PATH = $(abspath ./../../ontap/ambassador)
BIN_PATH = $(abspath ./../../bin)
endif
# Test for app/code/Vendor/Module
ifneq ("$(wildcard ./../../../../vendor/ontap/ambassador/Makefile)","")
MOD_PATH = $(abspath ./../../../../vendor/ontap/ambassador)
BIN_PATH = $(abspath ./../../../../vendor/bin)
endif
include $(MOD_PATH)/Makefile
dist: ## Create a distributable archive
@set -ex; \
git archive HEAD -o ./module-dist.zip