Now also store a copy of license when installing.
This commit is contained in:
parent
8dac26b2bb
commit
b1c3066d4c
3
Makefile
3
Makefile
@ -6,6 +6,7 @@ DESTDIR=/
|
||||
INSTALL_BINDIR=${DESTDIR}usr/bin
|
||||
INSTALL_CONFIGDIR=${DESTDIR}etc/${TARGET}
|
||||
INSTALL_SYSDSERVICEDIR=${DESTDIR}usr/lib/systemd/system
|
||||
INSTALL_LICENSEDIR=${DESTDIR}usr/share/licenses/${TARGET}
|
||||
|
||||
LDFLAGS=-ldflags "-s -w"
|
||||
|
||||
@ -19,6 +20,7 @@ ${TARGET}: ${SOURCES}
|
||||
install:
|
||||
install -Dm 0755 ${TARGET} ${INSTALL_BINDIR}/${TARGET}
|
||||
install -Dm 0644 contrib/config.example.json ${INSTALL_CONFIGDIR}/config.json
|
||||
install -Dm 0644 LICENSE ${INSTALL_LICENSEDIR}/LICENSE
|
||||
|
||||
install-service:
|
||||
install -Dm 0644 contrib/systemd/${TARGET}.service ${INSTALL_SYSDSERVICEDIR}/${TARGET}.service
|
||||
@ -26,6 +28,7 @@ install-service:
|
||||
|
||||
uninstall:
|
||||
rm ${INSTALL_BINDIR}/${TARGET}
|
||||
rm ${INSTALL_LICENSEDIR}/LICENSE
|
||||
|
||||
uninstall-service:
|
||||
${SYSCTL} stop ${TARGET}.service
|
||||
|
Loading…
Reference in New Issue
Block a user