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 test install info html pdf card docs
$(INSTSUB
) \
25 autoloads cleanall
clean cleancontrib cleanelc cleandoc cleanrel clean-install
36 clean-install
:: $(SUBDIRS
)
37 $(foreach dir, $?
, $(MAKE
) -C
$(dir) $@
;)
55 install-info
: install-doc
57 docs
: info html pdf card
63 $(MAKE
) -C
$(@
:install-
%=%) install
65 autoloads
: lisp maint.mk
69 $(foreach dir, $?
, $(MAKE
) -C
$(dir) $@
;)
70 -$(FIND
) .
-name \
*~
-exec
$(RM
) {} \
;
75 -$(FIND
) .
-name \
*~
-exec
$(RM
) {} \
;
78 -$(FIND
) contrib
-name \
*~
-exec
$(RM
) {} \
;
83 $(RMR
) org-7
*zip org-7
*tar.gz