diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-01-20 19:41:05 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-01-20 19:41:05 +0100 |
commit | f41ad2a38b8b39831bf46f1a5167167e6f7634e8 (patch) | |
tree | 65d8650af76bdb527056b8c2e6a8f4d7aff0ac2c | |
parent | m gitignore + add aux info files to gitignore (diff) | |
download | adjbacklight-f41ad2a38b8b39831bf46f1a5167167e6f7634e8.tar.gz adjbacklight-f41ad2a38b8b39831bf46f1a5167167e6f7634e8.tar.bz2 adjbacklight-f41ad2a38b8b39831bf46f1a5167167e6f7634e8.tar.xz |
building info
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 53 |
1 files changed, 50 insertions, 3 deletions
@@ -10,12 +10,57 @@ PREFIX=/usr +PROGRAM=adjbacklight +BOOK=$(PROGRAM) +BOOKDIR=./ + # compile the package -all: - javac -cp . Adjbacklight.java +.PHONY: all info +all: java + + +java: Adjbacklight.class + +%.class: %.java + javac -cp . "$<" + +info: $(BOOK).info.gz +%.info: $(BOOKDIR)%.texinfo + $(MAKEINFO) "$<" +%.info.gz: %.info + gzip -9c < "$<" > "$@" + + +pdf: $(BOOK).pdf +%.pdf: $(BOOKDIR)%.texinfo + texi2pdf "$<" + +pdf.gz: $(BOOK).pdf.gz +%.pdf.gz: %.pdf + gzip -9c < "$<" > "$@" + +pdf.xz: $(BOOK).pdf.xz +%.pdf.xz: %.pdf + xz -e9 < "$<" > "$@" + + +dvi: $(BOOK).dvi +%.dvi: $(BOOKDIR)%.texinfo + $(TEXI2DVI) "$<" + +dvi.gz: $(BOOK).dvi.gz +%.dvi.gz: %.dvi + gzip -9c < "$<" > "$@" + +dvi.xz: $(BOOK).dvi.xz +%.dvi.xz: %.dvi + xz -e9 < "$<" > "$@" + + # install to system +.PHONY: install install: mkdir -p $(DESTDIR)$(PREFIX)/bin mkdir -p $(DESTDIR)$(PREFIX)/share/licenses @@ -25,12 +70,14 @@ install: install -m 644 LICENSE $(DESTDIR)$(PREFIX)/share/licenses/adjbacklight # remove files created by `install` +.PHONY: uninstall uninstall: unlink $(DESTDIR)$(PREFIX)/bin/Adjbacklight.class unlink $(DESTDIR)$(PREFIX)/bin/adjbacklight rm -r $(DESTDIR)$(PREFIX)/share/licenses/adjbacklight # remove files created by `all` +.PHONY: clean clean: - rm Adjbacklight.class + rm -r *.{class,t2d,aux,cp,cps,fn,ky,log,pg,pgs,toc,tp,vr,vrs,op,ops,bak,info,pdf,ps,dvi,gz} || exit 0 |