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
: all oldorg update update2 up0 up1 up2 compile
$(SUBDIRS
) \
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 \
28 compile compile-dirty uncompiled
30 oldorg
: compile autoloads
info # what the old makefile did when no target was specified
31 uncompiled
: cleanlisp autoloads
# for developing
33 update update2
:: up0
all
37 $(info ======================================================)
38 $(info = Invoke
"make help" for a synopsis of make targets.
=)
39 $(info = Created a default local.mk template.
=)
40 $(info = Setting
"oldorg" as the default target.
=)
41 $(info = Please adapt local.mk to your local setup
! =)
42 $(info ======================================================)
44 -e
'1 i ## Remove the following line to make "all" the default target' \
46 -e
'/-8<-/,/->8-/ {s/^\(\s*[^#]\)/#\1/;p}' \
47 -e
'$$ i ## See default.mk for further configuration options.' \
60 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) $@
;)
67 TMPDIR
=$(testdir
) $(BTEST
)
68 ifeq ($(TEST_NO_AUTOCLEAN
),) # define this variable to leave $(testdir) around for inspection
78 $(SUDO
) $(MAKE
) install
82 install-info
: install-doc
84 doc docs
: $(ORG_MAKE_DOC
)
90 $(MAKE
) -C
$(@
:install-
%=%) install
96 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) cleanall
;)
102 cleanall
: cleandirs cleantest cleancontrib
103 -$(FIND
) .
-name \
*~
-exec
$(RM
) {} \
;
106 -$(FIND
) contrib
-name \
*~
-exec
$(RM
) {} \
;
111 $(RMR
) org-7
*zip org-7
*tar.gz
114 $(MAKE
) -C lisp
clean
115 -$(FIND
) lisp
-name \
*~
-exec
$(RM
) {} \
;
119 -$(FIND
) doc
-name \
*~
-exec
$(RM
) {} \
;