2 BINDIR ?
= $(PREFIX
)/bin
3 DATAROOTDIR ?
= $(PREFIX
)/share
4 DATADIR ?
= $(DATAROOTDIR
)
5 MANDIR ?
= $(DATADIR
)/man
9 PKG_CONFIG ?
= pkg-config
11 CFLAGS_NCURSESW
:= `$(PKG_CONFIG) --cflags ncursesw`
12 LIBS_NCURSESW
:= `$(PKG_CONFIG) --libs ncursesw`
16 rover
: rover.c config.h
17 $(CC
) $(CFLAGS
) $(CFLAGS_NCURSESW
) -o
$@
$< $(LDFLAGS
) $(LIBS_NCURSESW
)
20 rm -f
$(DESTDIR
)$(BINDIR
)/rover
21 mkdir
-p
$(DESTDIR
)$(BINDIR
)
22 cp rover
$(DESTDIR
)$(BINDIR
)/rover
23 mkdir
-p
$(DESTDIR
)$(MANDIR
)/man1
24 cp rover
.1 $(DESTDIR
)$(MANDIR
)/man1
/rover
.1
27 rm -f
$(DESTDIR
)$(BINDIR
)/rover
28 rm -f
$(DESTDIR
)$(MANDIR
)/man1
/rover
.1