Makefile (1573:79f364e9aa90) Makefile (1596:b7e2d4d92624)
1#!/usr/bin/make
2
3include ../../version
4
5DEFAULT_RELEASE := 1
6
7VERSION ?= $(NXT_VERSION)
8RELEASE ?= $(DEFAULT_RELEASE)

--- 260 unchanged lines hidden (view full) ---

269test: unit modules
270 @{ \
271 for so in `find rpmbuild/BUILD/*/build-nodebug/ -type f \( -name "*.so" -o -name "*.jar" \)`; do \
272 soname=`basename $${so}` ; \
273 test "$${soname}" = "java.unit.so" && continue ; \
274 test -h rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} || \
275 ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} ; \
276 done ; \
1#!/usr/bin/make
2
3include ../../version
4
5DEFAULT_RELEASE := 1
6
7VERSION ?= $(NXT_VERSION)
8RELEASE ?= $(DEFAULT_RELEASE)

--- 260 unchanged lines hidden (view full) ---

269test: unit modules
270 @{ \
271 for so in `find rpmbuild/BUILD/*/build-nodebug/ -type f \( -name "*.so" -o -name "*.jar" \)`; do \
272 soname=`basename $${so}` ; \
273 test "$${soname}" = "java.unit.so" && continue ; \
274 test -h rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} || \
275 ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} ; \
276 done ; \
277 ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-nodebug build && ./test/run.py ) ; \
277 ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-nodebug build && env python3 -m pytest ) ; \
278 }
279
280test-debug: unit modules
281 @{ \
282 for so in `find rpmbuild/BUILD/*/build-debug/ -type f \( -name "*.so" -o -name "*.jar" \)`; do \
283 soname=`basename $${so}` ; \
284 test "$${soname}" = "java.unit.so" && continue ; \
285 test -h rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} || \
286 ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} ; \
287 done ; \
278 }
279
280test-debug: unit modules
281 @{ \
282 for so in `find rpmbuild/BUILD/*/build-debug/ -type f \( -name "*.so" -o -name "*.jar" \)`; do \
283 soname=`basename $${so}` ; \
284 test "$${soname}" = "java.unit.so" && continue ; \
285 test -h rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} || \
286 ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} ; \
287 done ; \
288 ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-debug build && ./test/run.py ) ; \
288 ( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-debug build && env python3 -m pytest ) ; \
289 }
290
291clean:
292 rm -rf rpmbuild/SPECS rpmbuild/BUILD rpmbuild/BUILDROOT rpmbuild/RPMS rpmbuild/SRPMS ../../build
293 rm -f rpmbuild/SOURCES/unit-*.tar.gz check-build-depends-*
294 find . -maxdepth 1 -type l -delete
295
296.PHONY: default all modules specs rpmlint test test-debug clean
297
298.SECONDARY: $(addprefix check-build-depends-, $(MODULES))
289 }
290
291clean:
292 rm -rf rpmbuild/SPECS rpmbuild/BUILD rpmbuild/BUILDROOT rpmbuild/RPMS rpmbuild/SRPMS ../../build
293 rm -f rpmbuild/SOURCES/unit-*.tar.gz check-build-depends-*
294 find . -maxdepth 1 -type l -delete
295
296.PHONY: default all modules specs rpmlint test test-debug clean
297
298.SECONDARY: $(addprefix check-build-depends-, $(MODULES))