1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
prefix=:=
synopsis:= python synopsis.py
src := Path.h Polyline.h Bezier.h Nurbs.h
syn := $(patsubst %.h, %.syn, $(src))
all: Paths
Paths: Paths.syn
$(synopsis) html --output=$@ $<
Paths.syn: $(syn)
$(synopsis) link --output=$@ $^
Path.syn: ../src/Path.h
$(synopsis) cxx_ssd_prev --output=$@ $<
Polyline.syn: ../src/Polyline.h
$(synopsis) cxx_ss --output=$@ $<
Bezier.syn: ../src/Bezier.h
$(synopsis) cxx_javadoc --output=$@ $<
Nurbs.syn: ../src/Nurbs.h
$(synopsis) cxx_rst --output=$@ $<
install-html: all
ifdef prefix
mkdir -p $(prefix)
cp -r Paths/* $(prefix)
endif
install-print:
clean:
rm -rf *.syn sxr
distclean: clean
rm -rf Paths
|