api/Makefile
author Volker Birk <vb@pep-project.org>
Fri, 08 Feb 2019 21:51:42 +0100
branchgenerate_api
changeset 3288 8422831543bd
parent 3286 14ce4525b352
permissions -rw-r--r--
more sample code for Nana ;-)
vb@3288
     1
all: pEp.xml basic_api.h
vb@3258
     2
vb@3288
     3
YML2=$(wildcard *.yml2)
vb@3288
     4
YSL2=$(wildcard *.ysl2)
vb@3288
     5
vb@3288
     6
%.xml: %.yml2 $(YML2) $(YSL2)
vb@3258
     7
	yml2proc -P $< -o $@
vb@3258
     8
vb@3286
     9
%.xsl: %.ysl2
vb@3286
    10
	yml2proc -DP $< -o $@
vb@3286
    11
vb@3288
    12
%.h: $(YML2) $(YSL2)
vb@3258
    13
	yml2proc -y gen_c_header.ysl2 pEp.yml2
vb@3258
    14
vb@3258
    15
.PHONY: clean
vb@3258
    16
vb@3258
    17
clean:
vb@3286
    18
	rm -f *.xml *.xsl *.h