2011-07-12 20:31:41 +00:00
|
|
|
.NOTPARALLEL: .PHONY
|
2011-07-12 17:45:59 +00:00
|
|
|
# Additional distribution files
|
|
|
|
DISTFILES_extra= Makefile request-assign-future.txt contrib etc
|
2011-07-16 20:49:24 +00:00
|
|
|
.EXPORT_ALL_VARIABLES:
|
2011-07-12 17:45:59 +00:00
|
|
|
|
2011-07-19 18:05:14 +00:00
|
|
|
LISPDIRS = lisp
|
|
|
|
SUBDIRS = doc $(LISPDIRS)
|
|
|
|
INSTSUB = $(SUBDIRS:%=install-%)
|
|
|
|
|
2011-11-06 16:53:45 +00:00
|
|
|
GITVERSION = $(shell git describe --abbrev=6 HEAD)
|
|
|
|
ORGVERSION = $(subst release_,,$(shell git describe --abbrev=0 HEAD))
|
|
|
|
GITSTATUS = $(shell git status -uno --porcelain)
|
|
|
|
DATE = $(shell date +%Y-%m-%d)
|
|
|
|
ifneq ("$(GITSTATUS)", "")
|
|
|
|
GITVERSION := $(GITVERSION).dirty
|
|
|
|
endif
|
|
|
|
|
2011-07-19 18:05:14 +00:00
|
|
|
.PHONY: default all up2 update compile lisp doc \
|
|
|
|
install info html pdf card docs $(INSTSUB) \
|
|
|
|
autoloads cleanall clean cleancontrib cleanelc cleandoc cleanrel
|
2011-07-12 17:45:59 +00:00
|
|
|
|
2011-11-06 16:53:45 +00:00
|
|
|
compile:: lisp
|
2011-09-25 09:17:53 +00:00
|
|
|
$(MAKE) -C $< clean
|
2011-11-06 16:53:45 +00:00
|
|
|
|
|
|
|
compile \
|
|
|
|
compile-dirty:: lisp
|
2011-07-17 12:49:43 +00:00
|
|
|
$(MAKE) -C $< $@
|
|
|
|
|
2011-07-18 15:55:23 +00:00
|
|
|
all \
|
|
|
|
clean-install: $(SUBDIRS)
|
2011-07-17 12:49:43 +00:00
|
|
|
$(foreach dir, $?, $(MAKE) -C $(dir) $@;)
|
2011-07-12 17:45:59 +00:00
|
|
|
|
|
|
|
up2: update
|
|
|
|
sudo ${MAKE} install
|
|
|
|
|
|
|
|
update:
|
|
|
|
git pull
|
|
|
|
${MAKE} clean
|
|
|
|
${MAKE} all
|
|
|
|
|
2011-07-19 18:05:14 +00:00
|
|
|
install: $(INSTSUB)
|
|
|
|
|
|
|
|
install-info: install-doc
|
2011-07-12 17:45:59 +00:00
|
|
|
|
2011-07-17 12:49:43 +00:00
|
|
|
docs: info html pdf card
|
2011-07-12 17:45:59 +00:00
|
|
|
|
2011-07-17 12:49:43 +00:00
|
|
|
info html pdf card:
|
|
|
|
$(MAKE) -C doc $@
|
2011-07-12 20:31:41 +00:00
|
|
|
|
2011-07-19 18:05:14 +00:00
|
|
|
$(INSTSUB):
|
|
|
|
$(MAKE) -C $(@:install-%=%) install
|
2011-07-12 17:45:59 +00:00
|
|
|
|
2011-07-16 20:49:24 +00:00
|
|
|
autoloads: lisp maint.mk
|
2011-07-17 12:49:43 +00:00
|
|
|
$(MAKE) -C $< $@
|
2011-07-12 17:45:59 +00:00
|
|
|
|
2011-07-17 12:49:43 +00:00
|
|
|
cleanall: $(SUBDIRS)
|
|
|
|
$(foreach dir, $?, $(MAKE) -C $(dir) $@;)
|
|
|
|
-$(FIND) . -name \*~ -exec $(RM) {} \;
|
2011-07-12 20:31:41 +00:00
|
|
|
|
2011-07-17 12:49:43 +00:00
|
|
|
clean: cleanrel
|
2011-07-16 20:49:24 +00:00
|
|
|
$(MAKE) -C lisp clean
|
2011-07-17 12:49:43 +00:00
|
|
|
$(MAKE) -C doc clean
|
2011-07-12 20:31:41 +00:00
|
|
|
-$(FIND) . -name \*~ -exec $(RM) {} \;
|
|
|
|
|
|
|
|
cleancontrib:
|
|
|
|
-$(FIND) contrib -name \*~ -exec $(RM) {} \;
|
|
|
|
|
|
|
|
cleanrel:
|
2011-07-17 12:49:43 +00:00
|
|
|
$(RMR) RELEASEDIR
|
|
|
|
$(RMR) org-7.*
|
|
|
|
$(RMR) org-7*zip org-7*tar.gz
|