summaryrefslogtreecommitdiff
path: root/Makefile
blob: a4d6d42c0f5267e439109479771937eb3e50f810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include config.mk

vtime: vtime.c vtime.h
	${CC} vtime.c -o vtime

install: vtime
	mkdir -p $(PREFIX)/bin
	mkdir -p $(PREFIX)/include
	cp -f vtime $(PREFIX)/bin
	cp -f vtime.h $(PREFIX)/include
	chmod 755 $(PREFIX)/bin/vtime
	chmod 644 $(PREFIX)/include/vtime.h

uninstall:
	rm -f ${PREFIX}/bin/vtime\
		${PREFIX}/include/vtime.h

clean:
	rm -f vtime

.PHONY: install uninstall clean