Add support got ocid.conf generation and install
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
72b192c4cf
commit
c1b9838af5
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -44,7 +44,11 @@ ocid: ${OCID_LINK}
|
||||||
ocic: ${OCID_LINK}
|
ocic: ${OCID_LINK}
|
||||||
go build -o ocic ./cmd/client/
|
go build -o ocic ./cmd/client/
|
||||||
|
|
||||||
|
ocid.conf: ocid
|
||||||
|
./ocid --config="" config --default > ocid.conf
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
rm -f ocid.conf
|
||||||
rm -f ocic ocid
|
rm -f ocic ocid
|
||||||
rm -f ${OCID_LINK}
|
rm -f ${OCID_LINK}
|
||||||
rm -f conmon/conmon.o conmon/conmon
|
rm -f conmon/conmon.o conmon/conmon
|
||||||
|
@ -83,7 +87,7 @@ docs/%.5: docs/%.5.md
|
||||||
|
|
||||||
docs: $(MANPAGES_MD:%.md=%)
|
docs: $(MANPAGES_MD:%.md=%)
|
||||||
|
|
||||||
install:
|
install: ocid.conf
|
||||||
install -D -m 755 ocid ${INSTALLDIR}/ocid
|
install -D -m 755 ocid ${INSTALLDIR}/ocid
|
||||||
install -D -m 755 ocic ${INSTALLDIR}/ocic
|
install -D -m 755 ocic ${INSTALLDIR}/ocic
|
||||||
install -D -m 755 conmon/conmon $(PREFIX)/libexec/ocid/conmon
|
install -D -m 755 conmon/conmon $(PREFIX)/libexec/ocid/conmon
|
||||||
|
@ -93,6 +97,7 @@ install:
|
||||||
install -d $(PREFIX)/share/man/man5
|
install -d $(PREFIX)/share/man/man5
|
||||||
install -m 644 $(wildcard docs/*.5.md) $(PREFIX)/share/man/man5
|
install -m 644 $(wildcard docs/*.5.md) $(PREFIX)/share/man/man5
|
||||||
install -D -m 644 ocid.service $(PREFIX)/lib/systemd/system
|
install -D -m 644 ocid.service $(PREFIX)/lib/systemd/system
|
||||||
|
install -D -m 644 ocid.conf $(DESTDIR)/etc
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
systemctl stop ocid.service
|
systemctl stop ocid.service
|
||||||
|
|
Loading…
Reference in a new issue