Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit c0dabc6

Browse files
committed
[build] reinstate the “install” target
1 parent 21c660b commit c0dabc6

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,18 @@ $(TDS_ZIP): $(DOCS) $(ALL_STATUS) check
198198

199199
sign: $(CTAN_ZIPSIG)
200200

201-
.PHONY: package install manifest clean mrproper show showtargets check import news
201+
.PHONY: package install manifest clean mrproper show showtargets
202+
.PHONY: check import news tds ctan sign package loader
202203

204+
ifndef DESTDIR
203205
install:
204-
@echo " ××××××××××××××××××××××××××××××××"
205-
@echo " There is no “install” target."
206-
@echo " ××××××××××××××××××××××××××××××××"
207-
@echo " Compile a TDS zipball (make tds)"
208-
@echo " and extract that into your local"
209-
@echo " TEXMF instead."
210-
@echo " ××××××××××××××××××××××××××××××××"
206+
$(error "in order to install you need to provide $$DESTDIR")
207+
else
208+
install: $(TDS_ZIP)
209+
$(info installing to destination “$(DESTDIR)”)
210+
install -dm755 "$(DESTDIR)"
211+
unzip "$(TDS_ZIP)" -d "$(DESTDIR)"
212+
endif
211213

212214
manifest:
213215
@echo "Source files:"

0 commit comments

Comments
 (0)