Add install target to Makefile
Installs everything under `DESTDIR', which is `/usr/local' by default.
This commit is contained in:
parent
8d9615f72a
commit
58a7c046d2
5 changed files with 41 additions and 3 deletions
10
Makefile
10
Makefile
|
@ -1,7 +1,15 @@
|
||||||
dirs = src doc
|
export DESTDIR ?= /usr/local
|
||||||
|
|
||||||
|
dirs = src doc conkeror
|
||||||
|
install-dirs = $(addprefix install-,$(dirs))
|
||||||
|
|
||||||
.PHONY: all $(dirs)
|
.PHONY: all $(dirs)
|
||||||
|
|
||||||
all: $(dirs)
|
all: $(dirs)
|
||||||
|
install: $(install-dirs)
|
||||||
|
|
||||||
$(dirs):
|
$(dirs):
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
|
$(install-dirs): install-%:
|
||||||
|
$(MAKE) -C $*/ install
|
||||||
|
|
8
conkeror/Makefile
Normal file
8
conkeror/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
DESTDIR ?= /usr/local
|
||||||
|
|
||||||
|
.PHONY: all install
|
||||||
|
|
||||||
|
all:
|
||||||
|
install: markam.js
|
||||||
|
install -Dm 655 markam.js \
|
||||||
|
"$(DESTDIR)/share/conkeror/modules/markam.js"
|
|
@ -1,4 +1,12 @@
|
||||||
|
DESTDIR ?= /usr/local
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
all: markam.info
|
all: markam.info
|
||||||
|
|
||||||
|
install: markam.info
|
||||||
|
install -Dm 655 markam.info "$(DESTDIR)/share/info/markam.info"
|
||||||
|
install-info --dir-file="$(DESTDIR)/share/info/dir" \
|
||||||
|
"$(DESTDIR)/share/info/markam.info"
|
||||||
|
|
||||||
markam.info: markam.texi
|
markam.info: markam.texi
|
||||||
|
|
|
@ -35,6 +35,11 @@ The document was typeset with
|
||||||
@insertcopying
|
@insertcopying
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@dircategory Individual utilities
|
||||||
|
@direntry
|
||||||
|
* Markam: (markam). Keeps bookmarks.
|
||||||
|
@end direntry
|
||||||
|
|
||||||
@c Output the table of the contents at the beginning.
|
@c Output the table of the contents at the beginning.
|
||||||
@contents
|
@contents
|
||||||
|
|
||||||
|
|
13
src/Makefile
13
src/Makefile
|
@ -1,13 +1,22 @@
|
||||||
|
DESTDIR ?= /usr/local
|
||||||
|
|
||||||
|
binaries = markam markam-convert
|
||||||
|
install-binaries = $(addprefix install-,$(binaries))
|
||||||
objects = paths.o common.o
|
objects = paths.o common.o
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all install
|
||||||
|
|
||||||
|
all: $(binaries)
|
||||||
|
install: $(install-binaries)
|
||||||
|
|
||||||
all: markam markam-convert
|
|
||||||
markam: markam.scm $(objects)
|
markam: markam.scm $(objects)
|
||||||
csc $^ -o $@
|
csc $^ -o $@
|
||||||
|
|
||||||
markam-convert: markam-convert.scm $(objects)
|
markam-convert: markam-convert.scm $(objects)
|
||||||
csc $^ -o $@
|
csc $^ -o $@
|
||||||
|
|
||||||
|
$(install-binaries): install-%: %
|
||||||
|
install -Dm 755 $* "$(DESTDIR)/bin/$*"
|
||||||
|
|
||||||
$(objects): %.o: %.scm
|
$(objects): %.o: %.scm
|
||||||
csc -c $^
|
csc -c $^
|
||||||
|
|
Loading…
Reference in a new issue