-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·72 lines (54 loc) · 2.08 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
###############################################################################
# #
# Makefile #
# ======== #
# #
# Version: 1.0.0 #
# Date : 14.11.19 #
# Author : Peter Weissig #
# #
# For help or bug report please visit: #
# https://github.com/RoboSAX/php_punkte #
###############################################################################
NAME_GIT_THIS=punkte
SUBDIRS = doc
###############################################################################
# define phony targets for make commands
.PHONY: all all_init warn $(SUBDIRS) clean \
install_prerequisites \
update status push pull
# build specific commands
all: all_init $(SUBDIRS)
all_init:
@echo
@echo "### building $(NAME_GIT_THIS) ###"
warn:
@echo
@echo "###### reducing output to warnings ######"
$(MAKE) | grep -A 3 -B 3 -i warn; dummy=$?
$(SUBDIRS):
$(MAKE) -C $@
clean:
@echo
@echo "### clean $(NAME_GIT_THIS) ###"
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean; \
done
# install and download commands
install_prerequisites:
@cd scripts && ./install_prerequisites.sh
# git specific commands
update: pull
status:
@echo ""
@echo "### status of $(NAME_GIT_THIS) ###"
@git status --untracked-files
push:
@echo ""
@echo "### pushing of $(NAME_GIT_THIS) ###"
git push
pull:
@echo ""
@echo "### update $(NAME_GIT_THIS) ###"
git pull
###############################################################################