2 # Additional distribution files
3 DISTFILES_extra
= Makefile request-assign-future.txt contrib etc
7 SUBDIRS
= doc etc
$(LISPDIRS
)
8 INSTSUB
= $(SUBDIRS
:%=install-
%)
9 ORG_MAKE_DOC ?
= info html pdf
11 ifneq ($(wildcard .git
),)
12 GITVERSION ?
= $(shell git describe
--abbrev
=6 HEAD
)
13 ORGVERSION ?
= $(subst release_
,,$(shell git describe
--abbrev
=0 HEAD
))
14 GITSTATUS ?
= $(shell git status
-uno
--porcelain
)
19 DATE
= $(shell date
+%Y-
%m-
%d
)
21 GITVERSION
:= $(GITVERSION
).dirty
24 .PHONY
: default
all oldorg up2 update compile lisp doc etc \
25 check test install info html pdf card doc docs
$(INSTSUB
) \
26 autoloads cleanall
clean cleancontrib cleanrel clean-install \
27 cleanelc cleandirs cleanlisp cleandoc cleandocs cleantest
29 # backwards compatibility target
30 oldorg
: compile autoloads
info
42 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) $@
;)
49 TMPDIR
=$(testdir
) $(BTEST
)
50 ifeq ($(TEST_NO_AUTOCLEAN
),) # define this variable to leave $(testdir) around for inspection
55 $(SUDO
) $(MAKE
) install
64 install-info
: install-doc
66 doc docs
: $(ORG_MAKE_DOC
)
72 $(MAKE
) -C
$(@
:install-
%=%) install
78 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) cleanall
;)
84 cleanall
: cleandirs cleantest
85 -$(FIND
) .
-name \
*~
-exec
$(RM
) {} \
;
88 -$(FIND
) contrib
-name \
*~
-exec
$(RM
) {} \
;
93 $(RMR
) org-7
*zip org-7
*tar.gz
97 -$(FIND
) lisp
-name \
*~
-exec
$(RM
) {} \
;
101 -$(FIND
) doc
-name \
*~
-exec
$(RM
) {} \
;