Commit | Line | Data |
---|---|---|
0a817f40 | 1 | include Makefile.common |
b6dd1aaf | 2 | |
eddd1005 | 3 | all: install-scripts install-static header.mlt footer.mlt |
0a817f40 CE |
4 | |
5 | clean: | |
6 | rm header.mlt | |
7 | rm footer.mlt | |
8 | ||
9 | header.mlt: $(prefix)/etc/hcoop.header header.setTitle header.mlt.in | |
b6dd1aaf | 10 | cat header.setTitle >header.mlt |
0a817f40 | 11 | $(prefix)/bin/hcoop_header $(prefix) "<% Web.html title %>" >>header.mlt |
b6dd1aaf AC |
12 | cat header.mlt.in >>header.mlt |
13 | ||
0a817f40 | 14 | footer.mlt: $(prefix)/etc/hcoop.footer footer.mlt.in |
b6dd1aaf | 15 | cat footer.mlt.in >footer.mlt |
0a817f40 CE |
16 | $(prefix)/bin/hcoop_footer $(prefix) >>footer.mlt |
17 | ||
18 | install-scripts: scripts/* | |
19 | install -m 750 -o hcoop scripts/hcoop_header $(prefix)/bin | |
20 | install -m 750 -o hcoop scripts/hcoop_footer $(prefix)/bin | |
21 | install -m 750 -o hcoop scripts/hcoop_html $(prefix)/bin | |
eddd1005 CE |
22 | |
23 | install-static: etc/* | |
c1c4be38 CE |
24 | install -m 640 -o hcoop etc/tos.*.html $(prefix)/etc/static |
25 | install -m 640 -o hcoop etc/hcoop.header $(prefix)/etc/ | |
26 | install -m 640 -o hcoop etc/hcoop.footer $(prefix)/etc/ |