-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (25 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SHELL := /bin/bash
install:
mkdir -p "${DESTDIR}"/usr/bin/
install bin/environ "${DESTDIR}"/usr/bin/
install -d -m 0755 "${DESTDIR}"/usr/share/environ.d/
cd product && for d in * ; do \
mkdir -p "${DESTDIR}"/usr/share/environ.d/$$d ;\
for f in $$d/*.{m4,cnf} ; do \
test -f $$f && install -m 0644 $$f "${DESTDIR}"/usr/share/environ.d/$$f ;\
done ;\
for dd in $$d/* ; do \
test -d $$dd || continue ;\
for f in $$dd/*.m4 ; do \
test -f $$f || continue ;\
mkdir -p "${DESTDIR}"/usr/share/environ.d/$$dd ;\
install -m 0644 $$f "${DESTDIR}"/usr/share/environ.d/$$f ;\
done \
done \
done
test:
for f in product/*/t/*.sh ; do bash -x $$f && continue; echo FAIL: $$f; break; done
test_leap:
for f in product/ap/*/*.sh; do echo starting $$f; ENVIRON_TEST_IMAGE=registry.opensuse.org/opensuse/leap $$f && continue; echo FAIL $$f; break; done
test_tw:
for f in product/ap/*/*.sh; do echo starting $$f; ENVIRON_TEST_IMAGE=registry.opensuse.org/opensuse/tumbleweed $$f && continue; echo FAIL $$f; break; done