2 # Additional distribution files
3 DISTFILES_extra
= Makefile request-assign-future.txt contrib etc
7 SUBDIRS
= doc etc
$(LISPDIRS
)
8 INSTSUB
= $(SUBDIRS
:%=install-
%)
10 ifneq ($(wildcard .git
),)
11 GITVERSION ?
= $(shell git describe
--abbrev
=6 HEAD
)
12 ORGVERSION ?
= $(subst release_
,,$(shell git describe
--abbrev
=0 HEAD
))
13 GITSTATUS ?
= $(shell git status
-uno
--porcelain
)
18 DATE
= $(shell date
+%Y-
%m-
%d
)
20 GITVERSION
:= $(GITVERSION
).dirty
23 .PHONY
: default
all oldorg up2 update compile lisp doc etc \
24 check test install info html pdf card doc docs
$(INSTSUB
) \
25 autoloads cleanall
clean cleancontrib cleanrel clean-install \
26 cleanelc cleandirs cleanlisp cleandoc cleandocs cleantest
28 # backwards compatibility target
29 oldorg
: compile autoloads
info
41 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) $@
;)
48 TMPDIR
=$(testdir
) $(BTEST
)
49 ifeq ($(TEST_NO_AUTOCLEAN
),) # define this variable to leave $(testdir) around for inspection
54 $(SUDO
) $(MAKE
) install
63 install-info
: install-doc
65 doc docs
: info html pdf card
71 $(MAKE
) -C
$(@
:install-
%=%) install
77 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) cleanall
;)
83 cleanall
: cleandirs cleantest
84 -$(FIND
) .
-name \
*~
-exec
$(RM
) {} \
;
87 -$(FIND
) contrib
-name \
*~
-exec
$(RM
) {} \
;
92 $(RMR
) org-7
*zip org-7
*tar.gz
96 -$(FIND
) lisp
-name \
*~
-exec
$(RM
) {} \
;
100 -$(FIND
) doc
-name \
*~
-exec
$(RM
) {} \
;