2013-03-20 05:27:32 +00:00
|
|
|
ifeq ($(shell uname -m),x86_64)
|
2015-07-08 09:08:47 +00:00
|
|
|
LIBDIR ?= /usr/lib64
|
2013-03-20 05:27:32 +00:00
|
|
|
else
|
2015-07-08 09:08:47 +00:00
|
|
|
LIBDIR ?= /usr/lib
|
2013-03-20 05:27:32 +00:00
|
|
|
endif
|
2016-01-06 03:21:19 +00:00
|
|
|
SCRIPTSDIR ?= /usr/lib/qubes
|
2015-12-15 14:19:21 +00:00
|
|
|
SYSLIBDIR ?= /lib
|
2015-07-08 09:08:47 +00:00
|
|
|
INCLUDEDIR ?= /usr/include
|
2013-03-20 05:27:32 +00:00
|
|
|
|
2016-01-06 03:21:19 +00:00
|
|
|
export LIBDIR SCRIPTSDIR SYSLIBDIR INCLUDEDIR
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
help:
|
|
|
|
echo "Use rpmbuild to compile this pacakge"
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
rpms:
|
|
|
|
rpmbuild --define "_rpmdir rpm/" --define "_builddir ." -bb rpm_spec/qubes-utils.spec
|
2014-07-17 00:27:33 +00:00
|
|
|
all:
|
2013-03-20 05:27:32 +00:00
|
|
|
$(MAKE) -C qrexec-lib all
|
2014-01-05 04:32:57 +00:00
|
|
|
$(MAKE) -C qmemman all
|
2015-09-21 14:00:35 +00:00
|
|
|
$(MAKE) -C imgconverter all
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
$(MAKE) -C udev install
|
|
|
|
$(MAKE) -C qrexec-lib install
|
2014-01-05 04:32:57 +00:00
|
|
|
$(MAKE) -C qmemman install
|
2015-09-21 14:00:35 +00:00
|
|
|
$(MAKE) -C imgconverter install
|
2013-03-20 05:27:32 +00:00
|
|
|
|
2015-11-09 21:28:15 +00:00
|
|
|
install-fedora-kernel-support:
|
2014-07-17 00:27:33 +00:00
|
|
|
$(MAKE) -C dracut install
|
|
|
|
$(MAKE) -C kernel-modules install
|
|
|
|
|
2015-11-09 21:28:15 +00:00
|
|
|
install-debian-kernel-support:
|
|
|
|
$(MAKE) -C initramfs-tools install
|
|
|
|
$(MAKE) -C kernel-modules install
|
|
|
|
# expand module version
|
2015-11-27 15:41:22 +00:00
|
|
|
rm -f debian/qubes-kernel-vm-support.dkms
|
2015-11-09 21:28:15 +00:00
|
|
|
echo debian/tmp/usr/src/u2mfn-*/dkms.conf > debian/qubes-kernel-vm-support.dkms
|
|
|
|
|
2013-03-20 14:31:30 +00:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C qrexec-lib clean
|
2014-04-21 01:10:26 +00:00
|
|
|
$(MAKE) -C qmemman clean
|
2015-09-21 14:00:35 +00:00
|
|
|
$(MAKE) -C imgconverter clean
|