File: Makefile-site

package info (click to toggle)
auto-multiple-choice 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 92,612 kB
  • sloc: perl: 26,752; xml: 24,889; cpp: 1,997; python: 895; makefile: 569; sh: 233; ansic: 195
file content (43 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (4)
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
40
41
42
43
# -*- Makefile -*-

SHELL=/bin/sh

HVERSION=htdocs/version.shtml

TMPDIR:=$(shell mktemp -d)

STABLEVERSION=1.3.0
STABLESRC=../download_area/files/auto-multiple-choice_$(STABLEVERSION)_sources.tar.gz

DOCVERSION=1.3.0
SRC=/tmp/auto-multiple-choice_$(DOCVERSION)_sources.tar.gz

BASEDIR=$(TMPDIR)/auto-multiple-choice-$(DOCVERSION)
DOCDIR=$(BASEDIR)/doc
XML=$(DOCDIR)/auto-multiple-choice

SITEDOC=htdocs/auto-multiple-choice

version:
	../work/local/derniere-version.pl --mode h --fich $(STABLESRC) --ext _sources.tar.gz > $(HVERSION)
	echo '<!--#set var="DOCVERSION" value="$(DOCVERSION)"-->' >> $(HVERSION)

map: FORCE
	./sitemap.pl --repertoire htdocs --root https://www.auto-multiple-choice.net/ --o htdocs/sitemap.xml

xml: FORCE
	tar xvzf $(SRC) -C $(TMPDIR)
	$(MAKE) -C $(BASEDIR) MAJ

%.html: xml
	xsltproc --nonet --stringparam base.dir $(SITEDOC).$*/ $(DOCDIR)/doc-xhtml-site.$*.xsl $(XML).$*.xml

# doc a partir de la derniere version dans testing
doc: FORCE fr.html en.html ja.html ;

site: version doc map
	$(MAKE) -C ../download_area signe sync

FORCE: ;

.PHONY: site version map xml FORCE