summary refs log tree commit diff
path: root/Makefile
blob: df17a33e93f1695ca0bd949119033b4a5db0309b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
default:
	@echo Not doing anything by default to prevent you from messing up a local checkout.
	@echo If you are on a local checkout: build this on town, copy over userbar.html and
	@echo lastlog.html, and run php -S localhost:8000

lastlog: lastlog.c
	cc -o lastlog -Wall -Wextra lastlog.c -lm

.PHONY: userbar.html
userbar.html: userbar.sh
	./userbar.sh > userbar.html

.PHONY: lastlog.html
lastlog.html: lastlog
	./lastlog > lastlog.html

index.html: lastlog.html userbar.html
	php index.php > index.html