Update Makefile to include ethermess.7

This commit is contained in:
Juhani Krekelä 2019-07-17 16:24:46 +03:00
parent fda8b2a1e1
commit 4e5a9537ea
1 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ BINS := ethermess
LIBEXECS := ethermess-backend
TOOLS := ethertype-dump arp-request
MAN1S := ethermess.1
MAN7S := ethermess.7
.SUFFIXES:
.SUFFIXES: .c .o
@ -43,12 +44,15 @@ ethermess-backend: ethermess-backend.o
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
install: $(BINS) $(LIBEXECS) $(MANS)
install: $(BINS) $(LIBEXECS) $(MAN1S) $(MAN7S)
mkdir -p $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(LIBEXECDIR)
mkdir -p $(DESTDIR)$(MANDIR)/man1
mkdir -p $(DESTDIR)$(MANDIR)/man7
install $(BINS) $(DESTDIR)$(BINDIR)
install $(LIBEXECS) $(DESTDIR)$(LIBEXECDIR)
cp $(MAN1S) $(DESTDIR)$(MANDIR)/man1
cp $(MAN7S) $(DESTDIR)$(MANDIR)/man7
@echo
@echo '--------------------------------------------------------------------------------'
@echo 'To finish the installation, set the CAP_NET_RAW on $(LIBEXECDIR)/ethermess-backend with'
@ -64,6 +68,7 @@ uninstall:
cd $(DESTDIR)$(BINDIR) && rm $(BINS)
cd $(DESTDIR)$(LIBEXECDIR) && rm $(LIBEXECS)
cd $(DESTDIR)$(MANDIR)/man1 && rm $(MAN1S)
cd $(DESTDIR)$(MANDIR)/man7 && rm $(MAN7S)
clean:
rm -f $(BINS) $(LIBEXECS) $(TOOLS) *.o