1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
# Take account of old dpkg-architecture output.
ifeq ($(DEB_HOST_ARCH_OS),)
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
endif
subdirs = \
src
build: build-recursive
install:
@$(MAKE) install -C src DESTDIR=$(CURDIR)/debian/rootskel/
clean: clean-recursive
build-recursive clean-recursive:
@target=`echo $@ | sed s/-recursive//`; \
list='$(subdirs)'; \
for subdir in $$list; do \
(cd $$subdir && $(MAKE) $$target) || exit 1; \
done
|