aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-10 00:34:47 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-10 01:30:53 +0100
commit1a7c6c5a0ed9a5aae1fe45c3af335c120c2dc642 (patch)
tree965aa21be5411d2a9e1156013efc1980bca29f90 /Makefile
parentdfbafce6506fe5c47b0e60289a9d4629e502c9ac (diff)
downloadphilosophers-1a7c6c5a0ed9a5aae1fe45c3af335c120c2dc642.tar.gz
philosophers-1a7c6c5a0ed9a5aae1fe45c3af335c120c2dc642.tar.bz2
philosophers-1a7c6c5a0ed9a5aae1fe45c3af335c120c2dc642.zip
WIP: philo one
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3ebc3ac..61d67c3 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/09 03:31:28 by cacharle #+# #+# #
-# Updated: 2020/02/09 03:32:56 by cacharle ### ########.fr #
+# Updated: 2020/02/09 22:38:47 by cacharle ### ########.fr #
# #
# **************************************************************************** #
@@ -17,11 +17,20 @@ PHILO_ONE_DIR = philo_one
PHILO_TWO_DIR = philo_two
PHILO_THREE_DIR = philo_three
-philo_one:
+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"
+
+common:
+ $(MAKE) $(MAKE_ARGS) $(COMMON_DIR)
+
+philo_one: common
$(MAKE) $(MAKE_ARGS) $(PHILO_ONE_DIR)
-philo_two:
+philo_two: common
$(MAKE) $(MAKE_ARGS) $(PHILO_TWO_DIR)
-philo_two:
+philo_two: common
$(MAKE) $(MAKE_ARGS) $(PHILO_THREE_DIR)