X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/f39daeb1f66b8910f91274055bf07c3d008cdc50..31b9d84143f7330f4ad60eaa2c8877d28e00cffa:/doc/en/makefile

diff --git a/doc/en/makefile b/doc/en/makefile
index a4fb232d4..1be137c73 100644
--- a/doc/en/makefile
+++ b/doc/en/makefile
@@ -9,30 +9,29 @@ include ../../buildlib/defaults.mak
 ifdef XSLTPROC
 # generate a list of accepted man page translations
 SOURCE = $(patsubst ../%.xml,%,$(wildcard ../*.?.xml))
-INCLUDES = ../apt.ent ../apt-verbatim.ent
+INCLUDES = ../apt.ent ../apt-verbatim.ent apt-vendor.ent
 STYLESHEET=../manpage-style.xsl
 
 LOCAL := manpage-$(firstword $(SOURCE))
 $(LOCAL)-LIST := $(SOURCE)
 
+apt-vendor.ent: ../../vendor/current/apt-vendor.ent
+	ln -sf $(shell readlink -f $^) $@
+
 # Install generation hooks
-manpages: $($(LOCAL)-LIST) apt.8
+manpages: $($(LOCAL)-LIST)
 
 $($(LOCAL)-LIST) :: % : ../%.xml $(STYLESHEET) $(INCLUDES)
 	echo Creating man page $@
 	$(XSLTPROC) -o $@ $(STYLESHEET) $<
 
-apt.8: ../apt.8
-	cp -a ../apt.8 apt.8
-
 # Clean rule
 .PHONY: clean/$(LOCAL)
 veryclean: clean/$(LOCAL)
 clean: clean/$(LOCAL)
 clean/$(LOCAL):
-	-rm -rf $($(@F)-LIST) apt.8
+	-rm -rf $($(@F)-LIST) apt-vendor.ent
 endif
 
 # Chain to the manpage rule
-SOURCE = apt.8
 include $(MANPAGE_H)