Commit ca7e52c47da86525d649d34684a8fd9296c40a9b
receivedSat, 30. Sep 2023, 18:14:11 (by user sx)
Sat, 30 Sep 2023 16:14:11 +0000 (18:14 +0200)
authorManfred Steiner <sx@htl-kaindorf.at>
Sat, 30 Sep 2023 16:14:07 +0000 (18:14 +0200)
committerManfred Steiner <sx@htl-kaindorf.at>
Sat, 30 Sep 2023 16:14:07 +0000 (18:14 +0200)
examples/simuc/Makefile

index 58f36f92ddaa5760f76c1c37e9f533935a204f1e..f7cbcbf119e4ec58ff7ea2ed31ce8e72e066052a 100644 (file)
@@ -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