-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastien Varrette <Sebastien.Varrette@uni.lu>
- Loading branch information
Sebastien Varrette
authored and
Sebastien Varrette
committed
Feb 1, 2019
1 parent
569af35
commit b20b727
Showing
2 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
################################################################################## | ||
# Makefile - Configuration file for GNU make (http://www.gnu.org/software/make/) | ||
# Time-stamp: <Tue 2019-01-29 21:55 svarrette> | ||
# | ||
# Copyright (c) 2018 Sebastien Varrette <Sebastien.Varrette@uni.lu> | ||
# | ||
############################## Variables Declarations ############################ | ||
|
||
CURDIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
|
||
MODULES_DIR = modules | ||
MANIFESTS_DIR = manifests | ||
HIERADATA_DIR = hieradata | ||
|
||
MODULES = $(sort $(dir $(wildcard $(MODULES_DIR)/*/))) | ||
|
||
# all: setup | ||
|
||
# .PHONY: setup | ||
# setup: | ||
# r10k puppetfile install -v | ||
# $(MAKE) check | ||
|
||
# check: | ||
# puppet module --modulepath $(CURDIR)/modules --color true list --tree | ||
|
||
print: | ||
@echo "MODULES = $(MODULES)" | ||
|
||
clean: | ||
@if [ -f "$(HIERADATA_DIR)/custom.yaml" ]; then \ | ||
echo "=> remove custom hiera"; \ | ||
rm -f $(HIERADATA_DIR)/custom.yaml;\ | ||
fi | ||
|
||
distclean: clean | ||
@if [ -n "$(MODULES)" ]; then \ | ||
echo "=> remove puppet modules"; \ | ||
echo "(simulating) rm -rf $(MODULES)";\ | ||
fi |