Makefile: update

This commit is contained in:
Silvan Calarco 2024-04-13 17:11:42 +02:00
parent 90c809f459
commit ac0e056cf8

View File

@ -1,5 +1,5 @@
# makedist Makefile for installation and packaging # makedist Makefile for installation and packaging
# Copyright (c) 2003-2022 by Silvan Calarco <silvan.calarco@mambasoft.it> # Copyright (c) 2003-2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
@ -15,7 +15,7 @@ dist_archive = $(package)-$(makedist_version).tar.bz2
prefix := /usr prefix := /usr
datadir := $(prefix)/share datadir := $(prefix)/share
sysconfdir := /etc sysconfdir := /etc
sbindir := $(prefix)/sbin bindir := $(prefix)/bin
localedir := $(datadir)/locale/ localedir := $(datadir)/locale/
localstatedir := /var localstatedir := /var
makediststatedir := $(localstatedir)/makedist makediststatedir := $(localstatedir)/makedist
@ -69,7 +69,7 @@ clean:
install: install-locales install: install-locales
@install -d $(DESTDIR)$(datadir);\ @install -d $(DESTDIR)$(datadir);\
cp -a makedist $(DESTDIR)$(datadir)/;\ cp -a makedist $(DESTDIR)$(datadir)/;\
install -d -m0600 $(DESTDIR)$(sysconfdir)/makedist;\ install -d $(DESTDIR)$(sysconfdir)/makedist;\
cp -a config/config $(DESTDIR)$(sysconfdir)/makedist/config;\ cp -a config/config $(DESTDIR)$(sysconfdir)/makedist/config;\
install -d $(DESTDIR)$(sysconfdir)/sysconfig;\ install -d $(DESTDIR)$(sysconfdir)/sysconfig;\
cp -a config/makedist $(DESTDIR)$(sysconfdir)/sysconfig/makedist;\ cp -a config/makedist $(DESTDIR)$(sysconfdir)/sysconfig/makedist;\
@ -80,7 +80,8 @@ install: install-locales
cp -a var/recordvm-xinitrc $(DESTDIR)$(recordvmstatedir)/.xinitrc;\ cp -a var/recordvm-xinitrc $(DESTDIR)$(recordvmstatedir)/.xinitrc;\
cp -a var/recordvm-xvidcaprc $(DESTDIR)$(recordvmstatedir)/.xvidcaprc;\ cp -a var/recordvm-xvidcaprc $(DESTDIR)$(recordvmstatedir)/.xvidcaprc;\
cp -a var/recordvm-xorg.conf $(DESTDIR)$(recordvmstatedir)/xorg.conf;\ cp -a var/recordvm-xorg.conf $(DESTDIR)$(recordvmstatedir)/xorg.conf;\
install -d $(DESTDIR)$(sbindir);\ install -d $(DESTDIR)$(bindir);\
cp -a bin/makedist-recordvm $(DESTDIR)$(sbindir)/makedist-recordvm cp -a bin/makedist-recordvm $(DESTDIR)$(bindir)/makedist-recordvm
cp -a bin/makedist-newrelease $(DESTDIR)$(sbindir)/makedist-newrelease cp -a bin/makedist-newrelease $(DESTDIR)$(bindir)/makedist-newrelease
cp -a bin/makedist-announcement $(DESTDIR)$(sbindir)/makedist-announcement cp -a bin/makedist-announcement $(DESTDIR)$(bindir)/makedist-announcement
cp -a bin/makedist-docker $(DESTDIR)$(bindir)/makedist-docker