Makefile even better ;- sync
authorVolker Birk <vb@pep.foundation>
Tue, 04 Sep 2018 14:34:21 +0200
branchsync
changeset 2926f7b7072036c2
parent 2923 2b78505027c0
child 2927 bab83a0e7f46
Makefile even better ;-
sync/Makefile
     1.1 --- a/sync/Makefile	Mon Sep 03 22:28:17 2018 +0200
     1.2 +++ b/sync/Makefile	Tue Sep 04 14:34:21 2018 +0200
     1.3 @@ -5,7 +5,7 @@
     1.4  
     1.5  all: .codegen
     1.6  
     1.7 -.codegen: makedir .statemachines .actions .codecs .messages
     1.8 +.codegen: generated .statemachines .actions .codecs .messages
     1.9  	touch .codegen
    1.10  	make copy
    1.11  
    1.12 @@ -22,7 +22,7 @@
    1.13  	$(YML2_PROC) -y gen_messages.ysl2 $< -o $@
    1.14  	$(YML2_PROC) -y gen_message_func.ysl2 $< -o $@
    1.15  
    1.16 -.PHONY: clean copy makedir
    1.17 +.PHONY: clean copy
    1.18  
    1.19  clean:
    1.20  	rm -f *.xml *.xsl generated/* .statemachines .actions .codecs .messages *.dot *.svg
    1.21 @@ -30,7 +30,7 @@
    1.22  copy:
    1.23  	cp -f generated/*.c generated/*.h ../src
    1.24  
    1.25 -makedir:
    1.26 +generated: .codegen
    1.27  	-mkdir -p generated
    1.28  
    1.29  %.xml: %.fsm