From 7e26302785ec5b0506be0de68c430c41ef2fb354 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Wed, 7 Oct 2015 11:21:01 -0400 Subject: [PATCH] Makefiles: add pre-build Signed-off-by: Jean Privat --- contrib/benitlux/Makefile | 2 ++ contrib/crazy_moles/Makefile | 2 ++ contrib/jwrapper/Makefile | 2 ++ contrib/memory/Makefile | 2 ++ contrib/objcwrapper/Makefile | 2 ++ contrib/simplan/Makefile | 2 ++ contrib/tinks/Makefile | 2 ++ lib/json/Makefile | 2 +- src/Makefile | 3 +++ 9 files changed, 18 insertions(+), 1 deletion(-) diff --git a/contrib/benitlux/Makefile b/contrib/benitlux/Makefile index 9bf30ac..7041b04 100644 --- a/contrib/benitlux/Makefile +++ b/contrib/benitlux/Makefile @@ -1,5 +1,7 @@ all: server +pre-build: src/benitlux_serial.nit + server: mkdir -p bin/ ../../bin/nitc --dir bin/ src/benitlux_daily.nit src/benitlux_web.nit diff --git a/contrib/crazy_moles/Makefile b/contrib/crazy_moles/Makefile index 113329d..232ec08 100644 --- a/contrib/crazy_moles/Makefile +++ b/contrib/crazy_moles/Makefile @@ -4,6 +4,8 @@ SVG2PNG=../inkscape_tools/bin/svg_to_png_and_nit default: bin/moles +pre-build: assets/images/drawing.png + bin/moles: $(shell ../../bin/nitls -M src/moles_linux.nit) assets/images/drawing.png mkdir -p bin ../../bin/nitc -o bin/moles src/moles_linux.nit diff --git a/contrib/jwrapper/Makefile b/contrib/jwrapper/Makefile index 7c41505..3173333 100644 --- a/contrib/jwrapper/Makefile +++ b/contrib/jwrapper/Makefile @@ -1,5 +1,7 @@ all: bin/jwrapper +pre-build: src/javap_test_parser.nit src/serial.nit + ../nitcc/src/nitcc: make -C ../nitcc diff --git a/contrib/memory/Makefile b/contrib/memory/Makefile index ac91a73..a5a8c6d 100644 --- a/contrib/memory/Makefile +++ b/contrib/memory/Makefile @@ -14,6 +14,8 @@ all: bin/memory +pre-build: assets/images/drawing.png + bin/memory: assets/images/drawing.png src/*.nit mkdir -p bin ../../bin/nitc -o bin/memory src/memory.nit -m ../../lib/mnit/linux/linux.nit diff --git a/contrib/objcwrapper/Makefile b/contrib/objcwrapper/Makefile index e248fb1..33ed110 100644 --- a/contrib/objcwrapper/Makefile +++ b/contrib/objcwrapper/Makefile @@ -1,5 +1,7 @@ all: bin/objcwrapper +pre-build: src/objc_parser.nit + ../nitcc/src/nitcc: make -C ../nitcc diff --git a/contrib/simplan/Makefile b/contrib/simplan/Makefile index 530c25e..367868e 100644 --- a/contrib/simplan/Makefile +++ b/contrib/simplan/Makefile @@ -3,6 +3,8 @@ NITCC=../nitcc/src/nitcc all: simplan +pre-build: simplan_parser.nit + simplan: simplan.nit simplan_parser.nit ${NITC} simplan.nit diff --git a/contrib/tinks/Makefile b/contrib/tinks/Makefile index ee13360..8dec1ce 100644 --- a/contrib/tinks/Makefile +++ b/contrib/tinks/Makefile @@ -14,6 +14,8 @@ all: bin/server bin/tinks +pre-build: assets/images/drawing.png src/client/client_serialize.nit src/server/server_serialize.nit + # Client bin/tinks: assets/images/drawing.png src/client/client_serialize.nit $(shell ../../bin/nitls -M src/client/linux_client.nit) ../../bin/nitc -o bin/tinks src/client/linux_client.nit -m src/client/client_serialize.nit diff --git a/lib/json/Makefile b/lib/json/Makefile index 8d0650f..a8a5eb9 100644 --- a/lib/json/Makefile +++ b/lib/json/Makefile @@ -1,6 +1,6 @@ NITCCDIR=../../contrib/nitcc/ -compile-parser: $(NITCCDIR)src/nitcc +pre-build: $(NITCCDIR)src/nitcc $(NITCCDIR)src/nitcc $(NITCCDIR)examples/json.sablecc $(NITCCDIR)src/nitcc: diff --git a/src/Makefile b/src/Makefile index b46e488..6b9866a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -22,6 +22,9 @@ BINS=$(patsubst %,../bin/%,$(OBJS)) all: bin/nitc +pre-build: + ./git-gen-version.sh + nitc_0: ../c_src/nitc parser/parser.nit @echo '***************************************************************' @echo '* Compile nitc_0 from NIT source files *' -- 1.7.9.5