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 \
30 oldorg
: compile autoloads
info # what the old makefile did when no target was specified
32 update update2
:: up0
all
36 $(info ==========================================)
37 $(info Created a local.mk template.
)
38 $(info Please adapt local.mk to your local setup
!)
39 $(info ==========================================)
41 -e
'/-8<-/,/->8-/ {s/^\(\s*[^#]\)/#\1/;p}' \
42 -e
'$$ i ## See default.mk for further configuration options.' \
55 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) $@
;)
62 TMPDIR
=$(testdir
) $(BTEST
)
63 ifeq ($(TEST_NO_AUTOCLEAN
),) # define this variable to leave $(testdir) around for inspection
73 $(SUDO
) $(MAKE
) install
77 install-info
: install-doc
79 doc docs
: $(ORG_MAKE_DOC
)
85 $(MAKE
) -C
$(@
:install-
%=%) install
91 $(foreach dir, $(SUBDIRS
), $(MAKE
) -C
$(dir) cleanall
;)
97 cleanall
: cleandirs cleantest cleancontrib
98 -$(FIND
) .
-name \
*~
-exec
$(RM
) {} \
;
101 -$(FIND
) contrib
-name \
*~
-exec
$(RM
) {} \
;
106 $(RMR
) org-7
*zip org-7
*tar.gz
109 $(MAKE
) -C lisp
clean
110 -$(FIND
) lisp
-name \
*~
-exec
$(RM
) {} \
;
114 -$(FIND
) doc
-name \
*~
-exec
$(RM
) {} \
;