Changes to qemacs/Makefile

Charlie Gordon <[email protected]>
Newsgroups gmane.editors.qemacs.devel
Message-ID <[email protected]>
Index: qemacs/Makefile
diff -u qemacs/Makefile:1.2 qemacs/Makefile:1.3
--- qemacs/Makefile:1.2	Wed May  4 19:40:26 2005
+++ qemacs/Makefile	Mon May  9 09:10:37 2005
@@ -79,6 +79,7 @@
 endif
 LIBS+=-lm
 
+TARGETLIBS:=
 TARGETS+=qe$(EXE) qe-doc.html
 
 OBJS=qe.o charset.o buffer.o \
@@ -126,7 +127,8 @@
 LIBS+=-L./libqhtml -lqhtml
 OBJS+=html.o docbook.o
 ifndef CONFIG_WIN32
-TARGETS+=html2png$(EXE)
+TARGETLIBS+= libqhtml
+TARGETS+= html2png$(EXE)
 endif
 endif
 
@@ -139,15 +141,15 @@
 DEP_LIBS+=$(FFMPEG_LIBDIR)/libavcodec/libavcodec.a $(FFMPEG_LIBDIR)/libavformat/libavformat.a
 LIBS+=  -L$(FFMPEG_LIBDIR)/libavcodec -L$(FFMPEG_LIBDIR)/libavformat -lavformat -lavcodec -lz -lpthread
 DEFINES+= -I$(FFMPEG_SRCDIR)/libavcodec -I$(FFMPEG_SRCDIR)/libavformat
-TARGETS+=ffplay$(EXE)
+TARGETS+= ffplay$(EXE)
 endif
 
 # must be the last object
 OBJS+= qeend.o
 
-all: lib $(TARGETS)
+all: $(TARGETLIBS) $(TARGETS)
 
-lib:
+libqhtml: force
 	make -C libqhtml all
 
 qe_g$(EXE): $(OBJS) $(DEP_LIBS)
@@ -189,7 +191,7 @@
 distclean: clean
 	rm -f config.h config.mak
 
-install: qe$(EXE) qe.1 kmaps ligatures html2png$(EXE)
+install: $(TARGETS) qe.1 kmaps ligatures
 	install -m 755 qe$(EXE) $(prefix)/bin/qemacs
 	ln -sf qemacs $(prefix)/bin/qe$(EXE)
 ifdef CONFIG_FFMPEG
@@ -198,7 +200,9 @@
 	mkdir -p $(prefix)/share/qe
 	install kmaps ligatures $(prefix)/share/qe
 	install qe.1 $(prefix)/man/man1
+ifdef CONFIG_HTML
 	install -m 755 -s html2png$(EXE) $(prefix)/bin
+endif
 
 TAGS: force
 	etags *.[ch]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.