Hash :
7411d053
Author :
Thomas de Grivel
Date :
2023-01-21T15:08:37
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
# Makefile for help2man
# $Id: Makefile.in,v 1.20 2003/07/17 15:32:17 bod Exp $
SHELL = @SHELL@
VPATH = @srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@
datadir = @datadir@
infodir = @infodir@
localedir = $(datadir)/locale
DESTDIR =
LINGUAS = fr pl
CC = @CC@
PERL = @PERL@
LIBS = @LIBS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_INFO = @INSTALL_INFO@
MAKEINFO = @MAKEINFO@
MSGFMT = @MSGFMT@
MKINSTALLDIRS = $(srcdir)/mkinstalldirs
target = help2man
preload = hacklocaledir
all: $(target) man info @extra_make_all@
install: all install_base @extra_make_install@
install_base:
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
$(MKINSTALLDIRS) $(DESTDIR)$(infodir)
$(INSTALL_PROGRAM) $(target) $(DESTDIR)$(bindir)
$(INSTALL_DATA) $(target).1 $(DESTDIR)$(mandir)/man1
$(INSTALL_DATA) $(target).info $(DESTDIR)$(infodir)/$(target).info
if test -f $(DESTDIR)$(infodir)/dir; \
then \
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(target).info; \
fi
install_preload: preload
$(INSTALL_PROGRAM) $(preload).so $(DESTDIR)$(libdir)
install_l10n: man_l10n
for lang in $(LINGUAS); \
do \
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/$$lang/man1; \
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
$(INSTALL_DATA) $(target).$$lang.1 \
$(DESTDIR)$(mandir)/$$lang/man1/$(target).1; \
$(INSTALL_DATA) po/$$lang.gmo \
$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(target).mo; \
done
uninstall:
rm -f $(DESTDIR)$(bindir)/$(target) \
$(DESTDIR)$(libdir)/$(preload).so \
$(DESTDIR)$(mandir)/man1/$(target).1 \
$(DESTDIR)$(mandir)/fr/man1/$(target).1 \
$(DESTDIR)$(mandir)/pl/man1/$(target).1 \
$(DESTDIR)$(localedir)/fr/LC_MESSAGES/$(target).mo \
$(DESTDIR)$(localedir)/pl/LC_MESSAGES/$(target).mo \
$(DESTDIR)$(infodir)/$(target).info
if test -f $(DESTDIR)$(infodir)/dir; \
then \
$(INSTALL_INFO) --delete --info-dir=$(DESTDIR)$(infodir) \
$(target).info; \
fi
clean:
-rm -f $(target) $(preload).so
mostlyclean: clean
rm -f $(target).dvi $(target).aux $(target).cp $(target).cps \
$(target).fn $(target).ky $(target).log $(target).pg \
$(target).toc $(target).tp $(target).vr
distclean: mostlyclean
-rm -rf config.cache config.log config.status Makefile autom4te.cache
realclean: distclean
-rm -f $(target).info $(target).1 $(target).fr.1 $(target).pl.1 \
po/*.gmo
maintainer-clean: realclean
rm -f configure
$(target): $(srcdir)/$(target).PL
$(PERL) $?
preload: $(preload).so
$(preload).so: $(srcdir)/$(preload).c
$(CC) $(CFLAGS) -o $@ -fPIC -shared $? $(LIBS)
man: $(target).1
man_l10n:
for lang in $(LINGUAS); \
do \
$(MAKE) po/$$lang.gmo $(target).$$lang.1; \
done
$(target).1: $(target) $(srcdir)/$(target).h2m
./$(target) --include=$(srcdir)/$(target).h2m \
--output=$@ ./$(target)
$(target).fr.1: po/fr.gmo $(target) $(srcdir)/$(target).fr.h2m
$(MAKE) preload
LD_PRELOAD="./$(preload).so preloadable_libintl.so" \
TEXTDOMAIN=help2man \
./$(target) --include=$(srcdir)/$(target).fr.h2m \
--output=$@ --locale=fr_FR@euro ./$(target)
$(target).pl.1: po/pl.gmo $(target) $(srcdir)/$(target).pl.h2m
$(MAKE) preload
LD_PRELOAD="./$(preload).so preloadable_libintl.so" \
TEXTDOMAIN=help2man \
./$(target) --include=$(srcdir)/$(target).pl.h2m \
--output=$@ --locale=pl_PL ./$(target)
po/fr.gmo: $(srcdir)/po/fr.po
test -d po || mkdir po
$(MSGFMT) -o $@ $?
po/pl.gmo: $(srcdir)/po/pl.po
test -d po || mkdir po
$(MSGFMT) -o $@ $?
info: $(target).info
$(target).info: $(srcdir)/$(target).texi
$(MAKEINFO) $? -o $@
dvi: $(target).dvi
$(target).dvi: $(srcdir)/$(target).texi
$(TEXI2DVI) $?
Makefile: $(srcdir)/Makefile.in
./config.status
.PHONY: all clean distclean preload man man_l10n info dvi install \
install_base install_preload install_l10n mostlyclean realclean \
uninstall
.SUFFIXES: