Add install-strip target

This commit is contained in:
Tom Willemsen 2013-01-06 15:59:16 +01:00
parent 4fde21d991
commit e0cb224854
4 changed files with 15 additions and 1 deletions

View file

@ -7,6 +7,7 @@ export INSTALL_DATA = $(INSTALL) -m 644
dirs = src doc conkeror dirs = src doc conkeror
install-dirs = $(addprefix install-,$(dirs)) install-dirs = $(addprefix install-,$(dirs))
uninstall-dirs = $(addprefix uninstall-,$(dirs)) uninstall-dirs = $(addprefix uninstall-,$(dirs))
install-strip-dirs = $(addprefix installstrip-,$(dirs))
.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs) \ .PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs) \
dvi install-dvi pdf install-pdf ps install-ps dvi install-dvi pdf install-pdf ps install-ps
@ -14,6 +15,7 @@ uninstall-dirs = $(addprefix uninstall-,$(dirs))
all: $(dirs) all: $(dirs)
install: $(install-dirs) install: $(install-dirs)
uninstall: $(uninstall-dirs) uninstall: $(uninstall-dirs)
install-strip: $(install-strip-dirs)
$(dirs): $(dirs):
$(MAKE) -C $@ $(MAKE) -C $@
@ -24,6 +26,9 @@ $(install-dirs): install-%:
$(uninstall-dirs): uninstall-%: $(uninstall-dirs): uninstall-%:
$(MAKE) -C $*/ uninstall $(MAKE) -C $*/ uninstall
$(install-strip-dirs): installstrip-%:
$(MAKE) -C $*/ install-strip
dvi: dvi:
$(MAKE) -C doc/ dvi $(MAKE) -C doc/ dvi

View file

@ -7,5 +7,8 @@ install: markam.js
$(INSTALL_DATA) markam.js \ $(INSTALL_DATA) markam.js \
"$(DESTDIR)/share/conkeror/modules/markam.js" "$(DESTDIR)/share/conkeror/modules/markam.js"
install-strip:
$(MAKE) install
uninstall: uninstall:
rm -f "$(DESTDIR)/share/conkeror/modules/markam.js" rm -f "$(DESTDIR)/share/conkeror/modules/markam.js"

View file

@ -13,6 +13,9 @@ install: markam.info
$(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \ $(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \
"$(DESTDIR)/share/info/markam.info" "$(DESTDIR)/share/info/markam.info"
install-strip:
$(MAKE) install
uninstall: uninstall:
$(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \ $(INSTALL_INFO) --dir-file="$(DESTDIR)/share/info/dir" \
--delete "$(DESTDIR)/share/info/markam.info" --delete "$(DESTDIR)/share/info/markam.info"

View file

@ -6,11 +6,14 @@ install-binaries = $(addprefix install-,$(binaries))
uninstall-binaries = $(addprefix uninstall-,$(binaries)) uninstall-binaries = $(addprefix uninstall-,$(binaries))
objects = paths.o common.o objects = paths.o common.o
.PHONY: all install $(install-binaries) uninstall $(uninstall-binaries) .PHONY: all install $(install-binaries) uninstall $(uninstall-binaries) \
install-strip
all: $(binaries) all: $(binaries)
install: $(install-binaries) install: $(install-binaries)
uninstall: $(uninstall-binaries) uninstall: $(uninstall-binaries)
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
markam: markam.scm $(objects) markam: markam.scm $(objects)
$(CSC) $^ -o $@ $(CSC) $^ -o $@