Debian Codegraph @

doc/pasdoc/html-parts/Makefile

raw symbols SCIP
1 # Use this Makefile to generate HTML files
2 # for inclusion in the HTML API documentation.
3 #
4 # It requires
5 # - command-line php
6 # - cge-www repository (https://github.com/castle-engine/cge-www)
7 # cloned and placed as a sibling to castle-engine, in ../../../../cge-www/
8
9 ALL_TARGETS := body-end.html body-begin.html head.html images castle-engine-website-base
10
11 .PHONY: default
12 default: $(ALL_TARGETS)
13
14 .PHONY: clean
15 clean:
16 rm -Rf $(ALL_TARGETS)
17
18 %.html: %.php
19 php $< > $@
20
21 # Copy some static things (images, CSS, JS files) from cge-www.
22
23 CGE_WWW_PATH := ../../../../cge-www/
24
25 images:
26 rm -Rf images
27 mkdir -p images
28 cp -Rf $(CGE_WWW_PATH)htdocs/images/header_icon.png \
29 $(CGE_WWW_PATH)htdocs/images/patreon-brand \
30 images/
31 # The $(CGE_WWW_PATH)htdocs/images/castle_game_engine_icon* are symlinks now,
32 # copy instead the actual files to make things simple for distributing these API docs.
33 cp -f $(CGE_WWW_PATH)htdocs/images/not_resized_original/castle_game_engine_icon.png \
34 images/
35 cp -f $(CGE_WWW_PATH)htdocs/images/not_resized_original/castle_game_engine_icon_fit_in_square.png \
36 images/
37
38 castle-engine-website-base:
39 rm -Rf castle-engine-website-base
40 mkdir -p castle-engine-website-base
41 cp -Rf $(CGE_WWW_PATH)htdocs/castle-engine-website-base/castle-engine.css \
42 $(CGE_WWW_PATH)htdocs/castle-engine-website-base/castle-asciidoctor.css \
43 $(CGE_WWW_PATH)htdocs/castle-engine-website-base/castle-engine.js \
44 $(CGE_WWW_PATH)htdocs/castle-engine-website-base/node_modules \
45 castle-engine-website-base/