diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-05-10 15:32:29 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-05-10 15:32:29 +0200 |
commit | 314c9ecaaba711741ecc5bb3e3e1e62655cee8c4 (patch) | |
tree | 21309558223ac886f20a4c3ff2de6d1365d9dfc1 /Makefile | |
parent | 35d9b6d47a786b77d8c66925de4ca35bebd172c5 (diff) | |
download | mupdf-314c9ecaaba711741ecc5bb3e3e1e62655cee8c4.tar.xz |
Combine all small tools into mubusy and remove the separate executables.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -133,19 +133,16 @@ $(OUT)/cmapdump.o : pdf/pdf_cmap.c pdf/pdf_cmap_parse.c # --- Tools and Apps --- -MU_APPS := $(addprefix $(OUT)/, mudraw mupdfclean mupdfextract mupdfinfo mupdfshow mupdfposter) +MUDRAW := $(addprefix $(OUT)/, mudraw) +$(MUDRAW) : $(FITZ_LIB) $(THIRD_LIBS) -$(MU_APPS) : $(FITZ_LIB) $(THIRD_LIBS) - -BUSY_SRC := $(notdir $(wildcard apps/mubusy_*.c)) -BUSY_APP := $(addprefix $(OUT)/, mubusy) -$(BUSY_APP) : $(addprefix $(OUT)/, $(BUSY_SRC:%.c=%.o)) -$(BUSY_APP) : $(FITZ_LIB) $(THIRD_LIBS) +MUBUSY := $(addprefix $(OUT)/, mubusy) +$(MUBUSY) : $(addprefix $(OUT)/, mupdfclean.o mupdfextract.o mupdfinfo.o mupdfposter.o mupdfshow.o) $(FITZ_LIB) $(THIRD_LIBS) ifeq "$(NOX11)" "" -MUPDF := $(OUT)/mupdf -$(MUPDF) : $(FITZ_LIB) $(THIRD_LIBS) -$(MUPDF) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o) +MUVIEW := $(OUT)/mupdf +$(MUVIEW) : $(FITZ_LIB) $(THIRD_LIBS) +$(MUVIEW) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o) $(LINK_CMD) $(X11_LIBS) endif @@ -167,16 +164,16 @@ libdir ?= $(prefix)/lib incdir ?= $(prefix)/include mandir ?= $(prefix)/share/man -install: $(FITZ_LIB) $(MU_APPS) $(MUPDF) +install: $(FITZ_LIB) $(MUVIEW) $(MUDRAW) $(MUBUSY) install -d $(bindir) $(libdir) $(incdir) $(mandir)/man1 install $(FITZ_LIB) $(libdir) install fitz/memento.h fitz/fitz.h pdf/mupdf.h xps/muxps.h cbz/mucbz.h $(incdir) - install $(MU_APPS) $(MUPDF) $(bindir) + install $(MUVIEW) $(MUDRAW) $(MUBUSY) $(bindir) install $(wildcard apps/man/*.1) $(mandir)/man1 # --- Clean and Default --- -all: $(THIRD_LIBS) $(FITZ_LIB) $(MU_APPS) $(MUPDF) $(BUSY_APP) +all: $(THIRD_LIBS) $(FITZ_LIB) $(MUVIEW) $(MUDRAW) $(MUBUSY) clean: rm -rf $(OUT) |