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 26 27 28 29 30 31 32 33 34 35
|
#
# Copyright (c) 2014 Vitaly Sinilin <vs@kp4.ru>
#
# See the included COPYING file.
#
CFLAGS ?= -W -Wall -D_BSD_SOURCE -D_DEFAULT_SOURCE
ifdef DEBUG
CFLAGS += -g -DDEBUG
endif
DESTDIR =
PREFIX = /usr
bindir = $(PREFIX)/bin
mandir = $(PREFIX)/share/man
override bindir := $(DESTDIR)$(bindir)
override mandir := $(DESTDIR)$(mandir)
all: egctl
install: egctl
install -D egctl $(bindir)/egctl
install -D -m 644 egctl.1 $(mandir)/man1/egctl.1
uninstall:
$(RM) $(bindir)/egctl
$(RM) $(mandir)/man1/egctl.1
clean:
$(RM) egctl
.PHONY: all install uninstall clean
|