+prefix ?= ~
+bindir ?= $(prefix)/bin
+
+VERSION = $(shell $(CAT) VERSION)
+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 doc gtags
+
+build: version
+ $(MAKE) -C src all
+ $(CP) $(addprefix src/,$(CMD)) ./
+
+gtags:
+ $(if $(strip $(shell $(WHICH) $(GTAGS))),$(GTAGS),@$(ECHO) '$(GTAGS): not found')