File: Makefile.sub

package info (click to toggle)
htp 1.19-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,272 kB
  • sloc: ansic: 6,645; perl: 204; makefile: 60
file content (39 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (3)
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
#
# makefile - htp
#
# HTML pre-processor
# Copyright (c) 2011 Jochen Hoenicke
#

p$(dir) := $(d)
d := $(dir)

#################

DEF$(d) = $(d)/htp.def $(d)/files.hti
TESTS := macro files wildcard comments options png expand tags ifelse phptest
SRC$(d) := $(TESTS:%=$(d)/%.htp)
HTML$(d) := $(TESTS:%=$(d)/%.html)

DISTDIRS += $(d)
DISTFILES += $(d)/Makefile.sub $(SRC$(d)) $(DEF$(d))
DISTFILES += $(TESTS:%=$(d)/%.html.exp)
DISTFILES += $(d)/weser-ems.png
CLEAN += $(d)/*~ $(d)/*.html $(d)/htp.rsp
CLEAN += $(d)/fruits $(d)/htpdeb.out

HTML += $(HTML$(d))

.PHONY: check
all: check

$(HTML$(d)): $(d)/htp.def
$(d)/files.html: $(d)/files.hti
$(d)/png.html: $(d)/weser-ems.png

check: $(HTML$(d))
	@for i in $^; do \
	$(DIFF) -bw $$i $$i.exp || echo "TEST FAILED: $$i"; done

# restore parent dir
d := $(p$(d))