# Last edited on 2008-02-04 12:55:41 by stolfi # The invoker should redefine the variables PLATFORM and M3PLATFORM # as appropriate, either in the environment or in the "make" command PKG = ortho-v353-2 DEFVARS := PLATFORM=$(PLATFORM) M3PLATFORM=$(M3PLATFORM) PUBDIR := ${STOLFIHOME}/pkg/$(PKG)/PUB/$(PLATFORM) LIBDIR := $(PUBDIR)/lib BINDIR := $(PUBDIR)/bin MANDIR := $(PUBDIR)/man M3PROGS = \ Ortho CPROGS = SCRIPTS = \ cgi-bin PAGES = \ html all: showvars m3progs scripts pages showvars: @echo $(DEFVARS) m3progs: for p in $(M3PROGS); do \ ( cd pkg/$$p && echo '=== '`pwd`' ===' && \ m3build && ../../m3install $$p ./$(M3PLATFORM) $(PUBDIR) ) \ done cprogs: for p in $(CPROGS); do \ ( cd pkg/$$p && echo '======' && pwd && \ /n/gnu/bin/make $(DEFVARS) -f Makefile all install ) \ done scripts: for p in $(SCRIPTS); do \ ( cd pkg/$$p && echo '======' && pwd && \ /n/gnu/bin/make $(DEFVARS) -f Makefile all install ) \ done pages: for p in $(PAGES); do \ ( cd pkg/$$p && echo '======' && pwd && \ /n/gnu/bin/make $(DEFVARS) -f Makefile all install ) \ done