]> git.proxmox.com Git - proxmox-backup.git/commit
don't hardcode /usr/share paths
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 31 Jan 2019 12:43:09 +0000 (13:43 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 1 Feb 2019 09:41:54 +0000 (10:41 +0100)
commit6285b251e716918030b25c47becc6f9e8fae5958
tree77e54ad1d662bc12883b495335bfffb4b39bd03a
parent9fa03fa2d3462b2a1550bc99eaa20c9848085b1a
don't hardcode /usr/share paths

Add a defines.mk file defining the standard default layout
for installation (PREFIX, DATAROOTDIR, LIBDIR etc.).

Add a $(JSDIR) variable and use env!("JSDIR") in place of
the hardcoded /usr/share/javascript/proxmox-backup path.

Have defines.mk include an *optional* local.mak to override
JSDIR to www/ during local development.

Add `make install` targets and remove debian/install.

Note that service files are now in $libdir/proxmox-backup/
as there's usually no point in starting them from the
command line, so /usr/sbin makes no sense.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
12 files changed:
Makefile
debian/install
debian/proxmox-backup-proxy.service [deleted file]
debian/proxmox-backup.service [deleted file]
debian/rules
defines.mk [new file with mode: 0644]
etc/Makefile [new file with mode: 0644]
etc/proxmox-backup-proxy.service.in [new file with mode: 0644]
etc/proxmox-backup.service.in [new file with mode: 0644]
src/bin/proxmox-backup-api.rs
src/bin/proxmox-backup-proxy.rs
www/Makefile