atrip/Makefile.am

32 lines
551 B
Makefile

include $(top_srcdir)/etc/make/emacs.mk
include $(top_srcdir)/atrip.mk
SUBDIRS = src bench
_ATRIPSRCS = Sources.mk
ORG_MAIN = atrip.org
tangle: $(ORG_MAIN)
$(call tangle,$<)
clean-emacs: CLEANING=yes
clean-emacs:
-rm -v $(_ATRIPSRCS)
.PHONY: tangle
EMACS_HTML = $(EMACS) --load ./etc/emacs/html.el
%.html: %.org
$(EMACS_HTML) $< -f org-html-export-to-html
%.rst: %.org
$(EMACS_HTML) $< -f org-rst-export-to-rst
.PHONY: dbg
dbg: include/dbg.h
include/dbg.h:
wget -O $@ "https://raw.githubusercontent.com/sharkdp/dbg-macro/master/dbg.h"