blob: a6b328939d940565545f97993589c686f763470d (
plain)
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
|
DESTDIR ?= html
PHP ?= php
TARGETS = \
about.html \
freedom-privacy-security-issues.html \
index.html \
javascript.html \
screenshots.html \
supported-devices.html \
INSTALL_DIRECTORIES = \
css \
fonts \
images \
js \
library \
.PHONY: all
all: $(TARGETS)
$(DESTDIR):
mkdir -p $(DESTDIR)
%.html: %.php
$(PHP) -f $< | sed 's#\.php#\.html#g' > $@
.PHONY: clean
clean:
rm -f $(TARGETS)
rm -f cache/*.spc
.PHONY: install
install: $(DESTDIR) all
install -m644 $(TARGETS) -t $(DESTDIR)
cp -a $(INSTALL_DIRECTORIES) $(DESTDIR)
|