File: Makefile

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 (76 lines) | stat: -rw-r--r-- 1,612 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# makefile - htp
#
# HTML pre-processor
# Copyright (c) 2002 Jochen Hoenicke
#

include Makefile.config

d:=.

DISTDIRS  :=
DISTFILES := Makefile Makefile.config CLARIFIED_ARTISTIC INSTALL
CLEAN     := *~
SCRUB     := $(MAIN)-*.zip $(MAIN)-*.tar.gz
HTML      :=

# sub directories

dir:=src
include $(dir)/Makefile.sub
dir:=tests
include $(dir)/Makefile.sub
dir:=homepage
include $(dir)/Makefile.sub
dir:=examples
include $(dir)/Makefile.sub

all:
.PHONY: all install dist scrub clean force 

scrub:: clean
	rm -f $(SCRUB)

clean::
	rm -rf $(RELDIR)
	rm -f $(CLEAN)

dist:
	rm -rf $(RELDIR)
	for i in $(DISTDIRS); do mkdir -p $(RELDIR)/$$i; done
	for i in $(DISTFILES); do cp -p $$i $(RELDIR)/$$i; done

release: all release-src release-doc release-bin
	ls -l $(MAIN)-$(VERSION)*
	@test "$(RELEASE)" = 1 || \
        echo "****** ADD RELEASE=1 TO Makefile.config *******"

release-src: dist
	tar -czf $(MAIN)-$(VERSION).tar.gz $(RELDIR)
	rm -rf $(RELDIR)
	@test "$(RELEASE)" = 1 || \
        echo "****** ADD RELEASE=1 TO Makefile.config *******"

release-doc: $(HTP)
	rm -rf $(RELDIR)
	$(MAKE) install-doc pkgdocdir=`pwd`/$(RELDIR)
	zip -r $(MAIN)-$(VERSION)-doc.zip $(RELDIR)
	rm -rf $(RELDIR)

release-bin: $(HTP)
	$(STRIP) $(HTP)
	zip -j $(MAIN)-$(VERSION)-$(OS).zip $(HTP) CLARIFIED_ARTISTIC


$(HTML): %.html: %.htp $(HTP)
	cd $(dir $<); $(PWD)/$(HTP) -quiet -nodepend $(notdir $<) $(notdir $@)

vars:
	@echo HTML=$(HTML)
	@echo HTMLhomepage=$(HTMLhomepage)
	@echo HTMLhomepage/ref=$(HTMLhomepage/ref)
	@echo HTMLtests=$(HTMLtests)
	@echo HTMLexamples=$(HTMLexamples)
	@echo SRC=$(SRC)
	@echo HTP=$(HTP)