diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-12-04 22:34:21 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-12-04 22:34:21 +0100 |
commit | 812fb86e014032c42aaf1743bd521c739b3b0714 (patch) | |
tree | 3725c33fcee4ad6d37bd273273bc322a29a35b8c /Makefile | |
parent | m makefile (diff) | |
download | libpassphrase-812fb86e014032c42aaf1743bd521c739b3b0714.tar.gz libpassphrase-812fb86e014032c42aaf1743bd521c739b3b0714.tar.bz2 libpassphrase-812fb86e014032c42aaf1743bd521c739b3b0714.tar.xz |
improve makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 46 |
1 files changed, 24 insertions, 22 deletions
@@ -127,30 +127,32 @@ obj/test.o: src/test.c src/test.h $(CC) $(CC_FLAGS) -o "$@" -c "$<" $(CFLAGS) $(CPPFLAGS) .PHONY: info -info: libpassphrase.info -%.info: info/%.texinfo +info: bin/libpassphrase.info +bin/%.info: info/%.texinfo + @mkdir -p bin makeinfo "$<" + mv $*.info $@ .PHONY: pdf -pdf: libpassphrase.pdf -%.pdf: info/%.texinfo info/fdl.texinfo - @mkdir -p obj/pdf - cd obj/pdf ; yes X | texi2pdf ../../$< - mv obj/pdf/$@ $@ +pdf: bin/libpassphrase.pdf +bin/%.pdf: info/%.texinfo info/fdl.texinfo + @mkdir -p obj/pdf bin + cd obj/pdf && texi2pdf ../../$< < /dev/null + mv obj/pdf/$*.pdf $@ .PHONY: dvi -dvi: libpassphrase.dvi -%.dvi: info/%.texinfo info/fdl.texinfo - @mkdir -p obj/dvi - cd obj/dvi ; yes X | $(TEXI2DVI) ../../$< - mv obj/dvi/$@ $@ +dvi: bin/libpassphrase.dvi +bin/%.dvi: info/%.texinfo info/fdl.texinfo + @mkdir -p obj/dvi bin + cd obj/dvi && $(TEXI2DVI) ../../$< < /dev/null + mv obj/dvi/$*.dvi $@ .PHONY: ps -ps: libpassphrase.ps -%.ps: info/%.texinfo info/fdl.texinfo - @mkdir -p obj/ps - cd obj/ps ; yes X | texi2pdf --ps ../../$< - mv obj/ps/$@ $@ +ps: bin/libpassphrase.ps +bin/%.ps: info/%.texinfo info/fdl.texinfo + @mkdir -p obj/ps bin + cd obj/ps && texi2pdf --ps ../../$< < /dev/null + mv obj/ps/$*.ps $@ .PHONY: install @@ -189,22 +191,22 @@ install-license: install-doc: install-info install-pdf install-ps install-dvi .PHONY: install-info -install-info: libpassphrase.info +install-info: bin/libpassphrase.info install -dm755 -- "$(DESTDIR)$(INFODIR)" install -m644 -- "$<" "$(DESTDIR)$(INFODIR)/$(PKGNAME).info" .PHONY: install-pdf -install-pdf: libpassphrase.pdf +install-pdf: bin/libpassphrase.pdf install -dm755 -- "$(DESTDIR)$(DOCDIR)" install -m644 -- "$<" "$(DESTDIR)$(DOCDIR)/$(PKGNAME).pdf" .PHONY: install-ps -install-ps: libpassphrase.ps +install-ps: bin/libpassphrase.ps install -dm755 -- "$(DESTDIR)$(DOCDIR)" install -m644 -- "$<" "$(DESTDIR)$(DOCDIR)/$(PKGNAME).ps" .PHONY: install-dvi -install-dvi: libpassphrase.dvi +install-dvi: bin/libpassphrase.dvi install -dm755 -- "$(DESTDIR)$(DOCDIR)" install -m644 -- "$<" "$(DESTDIR)$(DOCDIR)/$(PKGNAME).dvi" @@ -225,5 +227,5 @@ uninstall: .PHONY: clean clean: - -rm -r bin obj *.info *.pdf *.ps *.dvi + -rm -r bin obj |