Ticket #32533: patch-Makefile.diff
File patch-Makefile.diff, 2.4 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Makefile
old new 9 9 FILES = Makefile README README.japanese NEWS Changelog COPYRIGHT TODO $(SHSKEL) $(PODIR) tools $(TESTDIR) $(NAME).man 10 10 11 11 12 PREFIX = /usr 12 13 DESTDIR = 13 BINDIR = $(DESTDIR)/usr/bin14 LOCALEDIR = $( DESTDIR)/usr/share/locale15 MANDIR = $( DESTDIR)/usr/share/man/man114 BINDIR = $(PREFIX)/bin 15 LOCALEDIR = $(PREFIX)/share/locale 16 MANDIR = $(PREFIX)/share/man/man1 16 17 17 18 TARGET=all 18 19 … … 48 48 po: check-po-dir 49 49 @cd $(PODIR) && \ 50 50 for pot in *.po; do \ 51 echo -n"merging $$pot..."; \51 printf "merging $$pot..."; \ 52 52 poti=`echo $$pot | sed 's/\.po$$//'`; \ 53 53 cp $$pot $$pot.old && \ 54 54 msgmerge $$pot.old $(NAME).pot > $$pot; \ … … 57 57 mo: check-po-dir 58 58 @cd $(PODIR) && \ 59 59 for pot in *.po; do \ 60 echo -n"compiling $$pot..."; \60 printf "compiling $$pot..."; \ 61 61 poti=`echo $$pot | sed 's/\.po$$//'`; \ 62 62 msgfmt -o $$poti.mo $$pot && \ 63 63 echo ok; \ … … 66 66 check-po: check-po-dir 67 67 @cd $(PODIR) && \ 68 68 for pot in *.po; do \ 69 echo -n"checking $$pot... "; \69 printf "checking $$pot... "; \ 70 70 msgfmt -v $$pot || exit 1; \ 71 71 done 72 72 … … 79 80 tar cvzf $(DISTDIR).tgz $(DISTDIR) && \ 80 81 rm -rf $(DISTDIR) 81 82 82 #TODO install man page andREADME83 #TODO install README 83 84 install: mo 84 @[ -d $(LOCALEDIR) ] || mkdir -p $(LOCALEDIR); \ 85 [ -d $(BINDIR) ] || mkdir -p $(BINDIR); \ 85 @[ -d $(DESTDIR)$(LOCALEDIR) ] || mkdir -p $(DESTDIR)$(LOCALEDIR); \ 86 [ -d $(DESTDIR)$(MANDIR) ] || mkdir -p $(DESTDIR)$(MANDIR); \ 87 [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR); \ 86 88 for pot in `cd $(PODIR) && ls *.mo`; do \ 87 89 poti=`echo $$pot | sed 's/\.mo$$//'`; \ 88 modir=$( LOCALEDIR)/$$poti/LC_MESSAGES; \90 modir=$(DESTDIR)$(LOCALEDIR)/$$poti/LC_MESSAGES; \ 89 91 [ -d $$modir ] || mkdir -p $$modir; \ 90 92 install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \ 91 93 done; \ 94 install -m644 $(NAME).man $(DESTDIR)$(MANDIR)/$(NAME).1 92 95 sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(LOCALEDIR),' \ 93 -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $( BINDIR)/$(NAME) && \94 chmod +x $( BINDIR)/$(NAME) && \95 echo "program '$(NAME)' installed. just run $( BINDIR)/$(NAME)"96 -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(DESTDIR)$(BINDIR)/$(NAME) && \ 97 chmod +x $(DESTDIR)$(BINDIR)/$(NAME) && \ 98 echo "program '$(NAME)' installed. just run $(DESTDIR)$(BINDIR)/$(NAME)" 96 99 97 100 ###DEVELOPPER ONLY### 98 101 doc: