+prefix ?= ~
+bindir ?= $(prefix)/bin
+casl2libdir ?= $(prefix)/yacasl2/casl2lib
+
+VERSIONFILES = include/package.h test/system/casl2/opt_v/0.txt test/system/comet2/opt_v/0.txt test/system/dumpword/opt_v/0.txt
+
+all: build info html gtags
+
+build: version
+ $(MAKE) -C src all
+
+gtags:
+ @$(WHICH) $(GTAGS) >/dev/null && $(GTAGS) || $(ECHO) "$(GTAGS): not found"
+
+docall: doc
+ $(MAKE) -C doc all
+
+info:
+ $(MAKE) -C doc info
+
+html:
+ $(MAKE) -C doc html
+
+doc-inner:
+ $(MAKE) -C doc_inner all