2 BATCH
=$(EMACS
) --batch
--execute
'(add-to-list (quote load-path) "$(shell pwd)")'
7 .PHONY
: src doc
check clean
11 $(BATCH
) -f batch-byte-compile
$^
17 $(MAKE
) -C doc
/ web-server.
info
23 $(BATCH
) -l cl
-l ert
-l web-server-test
-f ert-run-tests-batch-and-exit
26 rm -rf
$(ELC
) $(PACKAGE
) $(PACKAGE
).
tar
27 $(MAKE
) -C doc
/ $(MAKECMDGOALS
)
30 PARSE
=grep
"$(1):" web-server.el|sed
's/^.*$(1): //'
32 VERSION
=$(shell $(call PARSE
,Version
))
33 DOC
=$(shell head
-1 web-server.el|sed
's/^.*--- //')
34 REQ
=$(shell $(call PARSE
,Package-Requires
))
35 DEFPKG
=(define-package
"$(NAME)" "$(VERSION)"\n "$(DOC)"\n (quote
$(REQ
)))
36 PACKAGE
=$(NAME
)-$(VERSION
)
38 $(PACKAGE
): $(filter-out web-server-test.el
, $(SRC
)) doc
/web-server.
info doc
/dir
41 sed
-n
'/;;; Commentary:/,/;;; Code:/p' web-server.el|tail
-n
+3|head
-n-2|cut
-c4-
>$(PACKAGE
)/README
42 echo
-e
'$(DEFPKG)' > $(PACKAGE
)/$(NAME
)-pkg.el
44 $(PACKAGE
).
tar: $(PACKAGE
)
47 package
: $(PACKAGE
).
tar