diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/files/multi-arch/files-pkgconfig/build-spec/orig/Makefile | |
parent | Initial commit. (diff) | |
download | lintian-upstream.tar.xz lintian-upstream.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | t/recipes/checks/files/multi-arch/files-pkgconfig/build-spec/orig/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/recipes/checks/files/multi-arch/files-pkgconfig/build-spec/orig/Makefile b/t/recipes/checks/files/multi-arch/files-pkgconfig/build-spec/orig/Makefile new file mode 100644 index 0000000..796e1bc --- /dev/null +++ b/t/recipes/checks/files/multi-arch/files-pkgconfig/build-spec/orig/Makefile @@ -0,0 +1,21 @@ +ARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +ifeq ($(ARCH), x86_64-linux-gnu) + ARCH_CROSS=i386-linux-gnu +else + ARCH_CROSS=x86_64-linux-gnu +endif + +all: + find generated -name '*.pc.in' -exec sh -c 'echo "build" {} && cat {} | sed s/\$$\(ARCH\)/$(ARCH)/g | sed s/\$$\(ARCH_CROSS\)/$(ARCH_CROSS)/g > `echo {} | sed s/\.pc\.in$$/\.pc/g`' \; + +install: + install -d $(DESTDIR)/usr/lib/pkgconfig/ + install -d $(DESTDIR)/usr/lib/$(ARCH)/pkgconfig/ + install -m 644 indep-*.pc $(DESTDIR)/usr/lib/pkgconfig/ + install -m 644 generated/arch-*.pc $(DESTDIR)/usr/lib/$(ARCH)/pkgconfig/ + install -m 644 generated/indep-*.pc $(DESTDIR)/usr/lib/pkgconfig/ + +clean distclean: + rm -f generated/*.pc + +check test: |