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
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