aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-14 01:42:10 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-14 01:42:10 +0100
commitadbe9cdb61e5d12299b8872b2ac27a48036bc95d (patch)
treee8c5028c2f813ae4ee37b741f9b0a0d83af9e6f3 /Makefile
parent1a7c6c5a0ed9a5aae1fe45c3af335c120c2dc642 (diff)
downloadphilosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.tar.gz
philosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.tar.bz2
philosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.zip
WIP: philo_one running a bit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 16 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 61d67c3..24e240b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,31 +6,36 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/09 03:31:28 by cacharle #+# #+# #
-# Updated: 2020/02/09 22:38:47 by cacharle ### ########.fr #
+# Updated: 2020/02/14 00:48:59 by cacharle ### ########.fr #
# #
# **************************************************************************** #
MAKE = make
-MAKE_ARGS = -no-print-child
+MAKE_ARGS = --no-print-directory
+COMMON_DIR = common
PHILO_ONE_DIR = philo_one
PHILO_TWO_DIR = philo_two
PHILO_THREE_DIR = philo_three
help:
- @echo "make common - build common lib"
- @echo "make philo_one - compile philo_one"
- @echo "make philo two - compile philo_one"
- @echo "make philo three - compile philo_one"
+ @echo "make common - build common lib"
+ @echo "make philo_one - compile philo_one"
+ @echo "make philo_two - compile philo_one"
+ @echo "make philo_three - compile philo_one"
+.PHONY: common
common:
- $(MAKE) $(MAKE_ARGS) $(COMMON_DIR)
+ $(MAKE) $(MAKE_ARGS) -C $(COMMON_DIR)
+.PHONY: philo_one
philo_one: common
- $(MAKE) $(MAKE_ARGS) $(PHILO_ONE_DIR)
+ $(MAKE) $(MAKE_ARGS) -C $(PHILO_ONE_DIR)
+.PHONY: philo_two
philo_two: common
- $(MAKE) $(MAKE_ARGS) $(PHILO_TWO_DIR)
+ $(MAKE) $(MAKE_ARGS) -C $(PHILO_TWO_DIR)
-philo_two: common
- $(MAKE) $(MAKE_ARGS) $(PHILO_THREE_DIR)
+.PHONY: philo_three
+philo_three: common
+ $(MAKE) $(MAKE_ARGS) -C $(PHILO_THREE_DIR)