about summary refs log tree commit diff
path: root/Makefile
blob: 3423a2322c82ea79dde9e9b2d13f656ee993f895 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ALL=xdu
OBJS=xdu.o xwin.o

CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wno-unused-parameter
LDLIBS=-lXt -lXaw -lX11

DESTDIR=
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man

all: $(ALL)

xdu: $(OBJS)

clean: FRC
	rm -f $(ALL) $(OBJS)

install: FRC all
	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
	install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
	install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1

FRC: