diff options
Diffstat (limited to '')
-rw-r--r-- | t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile new file mode 100644 index 0000000..5c7831d --- /dev/null +++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile @@ -0,0 +1,18 @@ +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 '*-config.in' -exec sh -c 'echo "build" {} && cat {} | sed -e s/\$$\(ARCH\)/$(ARCH)/g -e s/\$$\(ARCH_CROSS\)/$(ARCH_CROSS)/g > `echo {} | sed -e s/\-config\.in$$/\-config/g -e s,/ARCH_,/$(ARCH)_,g`' \; + +install: + install -d $(DESTDIR)/usr/bin + install -m 755 generated/*-config $(DESTDIR)/usr/bin + +clean distclean: + rm -f generated/*.config + +check test: |