--- po/Makefile.orig 2020-10-03 15:43:15 UTC +++ po/Makefile @@ -1,4 +1,7 @@ prefix = /usr +ifdef PREFIX +prefix := $(PREFIX) +endif ifdef DESTDIR BASEDIR := $(DESTDIR) @@ -8,12 +11,14 @@ INSTALL= install INSTALLNLSDIR=$(BASEDIR)$(prefix)/share/locale -PACKAGE = whois +PACKAGE = %%MWHOIS%% CATALOGS = cs.mo da.mo de.mo el.mo es.mo eu.mo fi.mo fr.mo it.mo ja.mo pl.mo pt_BR.mo ru.mo zh_CN.mo POTFILES=../whois.c ../mkpasswd.c +.SUFFIXES: .po .mo + all: $(PACKAGE).pot $(CATALOGS) $(PACKAGE).pot: $(POTFILES) @@ -45,7 +50,7 @@ clean: rm -f *.mo distclean: clean - rm -f whois.pot + rm -f %%MWHOIS%%.pot install: $(CATALOGS) for n in $(CATALOGS); do \