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 30 31 32 33 34 35 36 37 38 39
|
#
# Makefile for SaVi - top level.
# $Id: Makefile 8 2019-01-24 04:33:00Z lloydwood $
SUBDIRS = manual bin maps oogl data tcl src
SHELL = /bin/sh
RM = /bin/rm -f
OTHER_SRCS = .geomview COPYRIGHT BUGS VERSION README configure savi \
README-COVERAGE-TEXTUREMAP PACKAGING
#
# targets
#
all:
@$(MAKE_SUBDIRS:target=all)
clean:
$(RM) *~ core $(CLEAN_FILES)
@$(MAKE_SUBDIRS:target=clean)
tarfilelist:
@srcs="Makefile $(SRCS) $(OTHER_SRCS)" ; \
for i in $$srcs ; do \
echo "$(CURRENT_DIR)$$i" >> $(TOP)/fileslist ; \
done
@$(MAKE_SUBDIRS:target=tarfilelist)
# macros
MAKE_SUBDIRS = \
dirs="$(SUBDIRS)" ; \
for i in $$dirs ; do \
(cd $$i; \
echo "making" target "in $(CURRENT_DIR)$$i..."; \
$(MAKE) $(MFLAGS) target CURRENT_DIR=$(CURRENT_DIR)$$i TOP=$(TOP) ARCH=$(ARCH)) ; \
done
|