6285b251e7
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>
16 lines
326 B
Makefile
Executable File
16 lines
326 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# See debhelper(7) (uncomment to enable)
|
|
# output every command that modifies files on the build system.
|
|
#DH_VERBOSE = 1
|
|
|
|
|
|
%:
|
|
dh $@ --with=systemd --with=bash-completion
|
|
|
|
override_dh_autobuild:
|
|
make PROXY_USER=www-data
|
|
|
|
override_dh_installinit:
|
|
dh_installinit
|
|
dh_installinit --name proxmox-backup-proxy
|