File: doc_makefile

package info (click to toggle)
pdnsd 1.2.9a-par-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,776 kB
  • ctags: 1,843
  • sloc: ansic: 16,471; sh: 1,312; perl: 566; makefile: 167
file content (23 lines) | stat: -rw-r--r-- 610 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

versionfile = ../../version
arch = i686
arch2 = x86_64
extver = _sl6
system = Scientific Linux 6.2 system

doc: dl.html
.PHONY: doc clean

# If the existing dl.html contains '???', then certain packages were missing
# during the previous build and dl.html needs to be built again.
ifneq ($(shell grep -F -l -e '???' dl.html),)
.PHONY: dl.html
endif

dl.html: %.html: %.html.in htmlsubst.pl $(versionfile)
	perl htmlsubst.pl version=`cat $(versionfile)` \
	baseurl='http://members.home.nl/p.a.rombouts/pdnsd/' \
	arch=$(arch) arch2=$(arch2) extver=$(extver) system="$(system)" $< > $@

clean:
	@rm -fv dl.html