Take better advantage of install(1)

This commit is contained in:
Juhani Krekelä 2019-07-19 00:02:21 +03:00
parent d9adcf0322
commit a7f841b0a0
1 changed files with 4 additions and 8 deletions

View File

@ -45,14 +45,10 @@ ethermess-backend: ethermess-backend.o
$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
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
install -D -m 755 -t '$(DESTDIR)$(BINDIR)' $(BINS)
install -D -m 755 -t '$(DESTDIR)$(LIBEXECDIR)' $(LIBEXECS)
install -D -m 644 -t '$(DESTDIR)$(MANDIR)/man1' $(MAN1S)
install -D -m 644 -t '$(DESTDIR)$(MANDIR)/man7' $(MAN7S)
@echo
@echo '--------------------------------------------------------------------------------'
@echo 'To finish the installation, set the CAP_NET_RAW on $(LIBEXECDIR)/ethermess-backend with'