From: Manfred Steiner Date: Sat, 30 Sep 2023 16:14:07 +0000 (+0200) Subject: Makefile fix X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=ca7e52c47da86525d649d34684a8fd9296c40a9b;p=sx%2Fsimavr.git Makefile fix --- diff --git a/examples/simuc/Makefile b/examples/simuc/Makefile index 58f36f9..f7cbcbf 100644 --- a/examples/simuc/Makefile +++ b/examples/simuc/Makefile @@ -51,11 +51,12 @@ ifeq ($(ARCH), arm-linux-gnueabihf) DEBARCH="armhf" endif +DEBBASE := dpkg DEBNAME := dpkg/htl-simuc_version_arch DEBSRC := dpkg/htl-simuc_version_arch DEBARCH := $(shell dpkg --print-architecture) -DEB := $(DEBNAME:%version=%$(DEBVERSION),%arch=%$(DEBARCH).deb) +DEB := $(DEBBASE:%version=%$(DEBVERSION),%arch=%$(DEBARCH).deb) LIBC_NAME := libc6 LIBC_VERSION := $(shell dpkg --list | grep ${LIBC_NAME}:${DEBARCH} | tr -s ' ' | cut -d" " -f 3 | cut -d"-" -f 1) LIBCXX_NAME := libstdc++6 @@ -66,7 +67,6 @@ LIBELF_VERSION := $(shell dpkg --list | grep ${LIBELF_NAME}:${DEBARCH} | tr -s ' deb: dpkg $(DEBSRC)/DEBIAN/control $(DEBSRC)/usr/share/doc/htl-simuc/readme @dpkg-deb -Z xz --root-owner-group --build $(DEBSRC) ${DEB} - @mv $(DEBSRC)/*.deb dpkg/ @chmod 644 dpkg/*.deb .PHONY: $(DEBSRC)/DEBIAN/control $(DEBSRC)/usr/share/doc/htl-simuc/readme