aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 74ac426129fef196f3f2cee542a167323ab005a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PREFIX=/usr
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man/man1
DESTDIR=

-include config.mk

ministat:
	gcc -lm ministat.c -o ministat

clean:
	rm -rf *.o ministat ministat.1.gz

all: ministat

install-man:
	gzip -c ministat.1 > ministat.1.gz

install: install-man ministat
	install -D -m 0755 ministat $(DESTDIR)$(BINDIR)/ministat
	install -D -m 0644 ministat.1.gz $(DESTDIR)$(MANDIR)/ministat.1.gz

uninstall:
	rm $(DESTDIR)$(BINDIR)/ministat
	rm $(DESTDIR)$(MANDIR)/ministat.1.gz