| 1 | include Makefile.common |
| 2 | |
| 3 | all: install-scripts install-static header.mlt footer.mlt |
| 4 | |
| 5 | clean: |
| 6 | rm header.mlt |
| 7 | rm footer.mlt |
| 8 | |
| 9 | header.mlt: $(prefix)/etc/hcoop.header header.setTitle header.mlt.in |
| 10 | cat header.setTitle >header.mlt |
| 11 | $(prefix)/bin/hcoop_header $(prefix) "<% Web.html title %>" >>header.mlt |
| 12 | cat header.mlt.in >>header.mlt |
| 13 | |
| 14 | footer.mlt: $(prefix)/etc/hcoop.footer footer.mlt.in |
| 15 | cat footer.mlt.in >footer.mlt |
| 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 |
| 22 | |
| 23 | install-static: etc/* |
| 24 | install -m 650 -o hcoop etc/tos.*.html $(prefix)/etc/static |