-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (14 loc) · 897 Bytes
/
Makefile
File metadata and controls
19 lines (14 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
NAME := foremanctl
VERSION := $(shell git describe)
REQUIREMENTS_YML := $(firstword $(wildcard src/requirements-lock.yml src/requirements.yml))
dist: $(NAME)-$(VERSION).tar.gz
$(NAME)-$(VERSION).tar.gz: build/collections/foremanctl
git archive --prefix $(NAME)-$(VERSION)/ --output $(NAME)-$(VERSION).tar HEAD
tar --append --file $(NAME)-$(VERSION).tar --transform='s#^#$(NAME)-$(VERSION)/#' --exclude='build/collections/foremanctl/ansible_collections/*/*/tests/*' build/collections/foremanctl
gzip $(NAME)-$(VERSION).tar
build/collections/foremanctl: $(REQUIREMENTS_YML)
ANSIBLE_COLLECTIONS_PATH=$@ ANSIBLE_COLLECTIONS_SCAN_SYS_PATH=false ansible-galaxy install -r $(REQUIREMENTS_YML)
build/collections/forge: development/requirements.yml
ANSIBLE_COLLECTIONS_PATH=$@ ANSIBLE_COLLECTIONS_SCAN_SYS_PATH=false ansible-galaxy install -r development/requirements.yml
clean-var:
rm -rf .var