Ticket #14459: patch-Makefile.diff
File patch-Makefile.diff, 4.3 KB (added by michipili (Michael Grünewald), 17 years ago) |
---|
-
Makefile
old new 6 6 CFLAGS= 7 7 # If you have Icon, you should use the Icon versions of the noweb pipeline. 8 8 # Set LIBSRC=icon 9 LIBSRC= awk9 LIBSRC=icon 10 10 # If you have no Icon compiler, but do have icont, make ICONC=icont 11 ICONC=icon c11 ICONC=icont 12 12 ICONT=icont 13 13 14 14 # BIN is where the commands (notangle, noweave, nountangle, noroots) land … … 18 18 # MAN7EXT is the extension for the nowebstyle man page (usually 7) 19 19 # TEXINPUTS is the directory for TeX macro files 20 20 # ELISP is the directory for emacs lisp files, or /dev/null not to install 21 BIN=/usr/local/noweb 22 LIB=/usr/local/noweb/lib 23 MAN=/usr/local/noweb/man 21 PREFIX?=@PREFIX@ 22 NOWEBPREFIX=$(DESTDIR)$(PREFIX) 23 BIN=$(NOWEBPREFIX)/bin 24 LIB=$(NOWEBPREFIX)/libexec/noweb 25 MAN=$(NOWEBPREFIX)/share/man 24 26 MANEXT=1 25 27 MAN7EXT=7 26 TEXINPUTS= /usr/local/tex/inputs27 ELISP= /dev/null28 TEXINPUTS=$(NOWEBPREFIX)/share/texmf/tex/generic/noweb 29 ELISP=$(NOWEBPREFIX)/share/emacs/site-lisp 28 30 29 31 # change WEAVE if you want a different version of noweave to be installed 30 32 WEAVE=noweave … … 37 39 MAN7DIR=$(MAN)/man$(MAN7EXT) 38 40 CATDIR=$(MAN)/cat$(MANEXT) 39 41 CAT7DIR=$(MAN)/cat$(MAN7EXT) 40 LIBNAME=$(LIB) 41 TEXNAME=$(TEXINPUTS) 42 LIBNAME=$(PREFIX)/libexec/noweb 43 TEXNAME=$(PREFIX)/share/texmf/tex/generic/noweb 44 INSTALLDIR=install -d 42 45 43 46 all: 44 47 cd c; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" all … … 58 61 -rmdir $(BIN) $(LIB) 2>/dev/null 59 62 60 63 install-shell: 61 - mkdir$(BIN) $(LIB) 2>/dev/null64 -$(INSTALLDIR) $(BIN) $(LIB) 2>/dev/null 62 65 sed "s@|LIBDIR|@$(LIBNAME)@" shell/noweb > $(BIN)/noweb 63 66 chmod +x $(BIN)/noweb 64 67 sed "s@|LIBDIR|@$(LIBNAME)@" shell/notangle > $(BIN)/notangle … … 98 101 rm $(LIB)/tmac.w 99 102 100 103 install-code: install-shell 101 - mkdir$(BIN) $(LIB) 2>/dev/null104 -$(INSTALLDIR) $(BIN) $(LIB) 2>/dev/null 102 105 strip c/nt c/markup c/mnt c/finduses 103 106 cp c/nt c/markup c/mnt c/finduses $(LIB) 104 107 cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) install … … 109 112 cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) uninstall 110 113 cd lib; make LIB=$(LIB) uninstall 111 114 install-man: 112 - mkdir$(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null115 -$(INSTALLDIR) $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null 113 116 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 > $(MANDIR)/cpif.$(MANEXT) 114 117 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 > $(MANDIR)/nodefs.$(MANEXT) 115 118 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 > $(MANDIR)/noroots.$(MANEXT) … … 142 145 rm -f $(MANDIR)/noweave.$(MANEXT) 143 146 rm -f $(MANDIR)/nountangle.$(MANEXT) 144 147 install-gzipped-man: 145 - mkdir$(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null148 -$(INSTALLDIR) $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null 146 149 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 | gzip -9 > $(MANDIR)/cpif.$(MANEXT).gz 147 150 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 | gzip -9 > $(MANDIR)/nodefs.$(MANEXT).gz 148 151 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 | gzip -9 > $(MANDIR)/noroots.$(MANEXT).gz … … 161 164 (cd $(MANDIR); ln notangle.$(MANEXT).gz nountangle.$(MANEXT).gz) 162 165 install-preformat-man: 163 166 -echo "Warning: install-preformat-man is obsolete, even on Slackware systems" 1>&2 164 - mkdir$(MAN) $(CATDIR) $(CAT7DIR) 2>/dev/null167 -$(INSTALLDIR) $(MAN) $(CATDIR) $(CAT7DIR) 2>/dev/null 165 168 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.txt | gzip > $(CATDIR)/cpif.$(MANEXT).gz 166 169 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.txt | gzip > $(CATDIR)/nodefs.$(MANEXT).gz 167 170 sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.txt | gzip > $(CATDIR)/noroots.$(MANEXT).gz … … 179 182 rm -f $(CATDIR)/nountangle.$(MANEXT).gz 180 183 (cd $(CATDIR); ln notangle.$(MANEXT).gz nountangle.$(MANEXT).gz) 181 184 install-tex: 182 - mkdir$(TEXINPUTS) 2>/dev/null185 -$(INSTALLDIR) $(TEXINPUTS) 2>/dev/null 183 186 cp tex/nwmac.tex tex/noweb.sty $(TEXINPUTS) 184 187 -texhash || echo "Program texhash not found or failed" 185 188 … … 187 190 rm -f $(TEXINPUTS)/nwmac.tex $(TEXINPUTS)/noweb.sty 188 191 189 192 install-elisp: 190 - mkdir$(ELISP) 2>/dev/null193 -$(INSTALLDIR) $(ELISP) 2>/dev/null 191 194 cp elisp/noweb-mode.el $(ELISP) 192 195 193 196 uninstall-elisp: