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 up2 update compile lisp doc etc \
24 check test install info html pdf card docs
$(INSTSUB
) \
25 autoloads cleanall
clean cleancontrib cleanrel clean-install \
26 cleanelc cleandirs cleanlisp cleandoc cleandocs cleantest
37 clean-install
:: $(SUBDIRS
)
38 $(foreach dir, $?
, $(MAKE
) -C
$(dir) $@
;)
45 TMPDIR
=$(testdir
) $(BTEST
)
46 ifeq ($(TEST_NO_AUTOCLEAN
),) # define this variable to leave $(testdir) around for inspection
51 $(SUDO
) $(MAKE
) install
60 install-info
: install-doc
62 docs
: info html pdf card
68 $(MAKE
) -C
$(@
:install-
%=%) install
74 $(foreach dir, $?
, $(MAKE
) -C
$(dir) cleanall
;)
80 cleanall
: cleandirs cleantest
81 -$(FIND
) .
-name \
*~
-exec
$(RM
) {} \
;
84 -$(FIND
) contrib
-name \
*~
-exec
$(RM
) {} \
;
89 $(RMR
) org-7
*zip org-7
*tar.gz
93 -$(FIND
) lisp
-name \
*~
-exec
$(RM
) {} \
;
97 -$(FIND
) doc
-name \
*~
-exec
$(RM
) {} \
;