Remove debian/cpulimit.dirs, the upstream MAKEFILE now creates the
[debian/cpulimit.git] / Makefile
1 PREFIX?=/usr
2 CFLAGS?=-Wall -O2
3
4 all: cpulimit
5
6 cpulimit: cpulimit.c
7         gcc -o cpulimit cpulimit.c -lrt $(CFLAGS)
8
9 install: cpulimit
10         mkdir -p ${PREFIX}/bin
11         mkdir -p ${PREFIX}/share/man/man1
12         cp cpulimit ${PREFIX}/bin
13         cp cpulimit.1.gz ${PREFIX}/share/man/man1
14
15 deinstall:
16         rm -f ${PREFIX}/bin/cpulimit
17         rm -f ${PREFIX}/share/man/man1/cpulimit.1.gz
18
19 clean:
20         rm -f *~ cpulimit