-# Copyright (C) 2003 CEA/DEN, EDF R&D
-#
+
+# -* Makefile *-
#
+# Author : Patrick GOLDBRONN (CEA)
+# Date : 30/11/2001
+# $Header$
#
-# File : Makefile.in
-# Author : Vasily Rusyaev (Open Cascade NN)
-# Module : doc
-# $Header:
-
+# source path
top_srcdir=@top_srcdir@
top_builddir=../..
srcdir=@srcdir@
VPATH=.:@srcdir@
+SUBDIRS= tui gui
+
@COMMENCE@
docs:
- cp -fr $(srcdir)/GUI ./
- -find $(PWD) -name CVS -exec rm -rf {} \;
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done; \
+ cp -f $(srcdir)/GUI_index.html GUI_index.html
clean:
- rm -fr `ls | grep -v "Makefile"`
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done
distclean: clean
- rm -fr GUI
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done
install:
- mkdir -p $(docdir)
- cp -rf GUI $(docdir)
- -find $(PWD) -name CVS -exec rm -rf {} \;
+ $(MAKE) docs
+ (cd tui && $(MAKE) install);
+ (cd gui && $(MAKE) install);
+ cp -f GUI_index.html $(docdir)
uninstall:
- rm -rf $(docdir)/GUI
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done; \
+ rm -fr $(docdir)/GUI_index.html