#
DIRS = de
LOCALEDIR = @locale_dir@

USE_NLS = @USE_NLS@
MSGFMT = @msgfmt@
MSGMERGE = @msgmerge@

format:
	if [ "$(USE_NLS)" = "yes" ]; then \
	    for dir in $(DIRS) ; do \
	        $(MAKE) -C $$dir format ; \
	    done ; \
	fi ;

merge:
	if [ "$(USE_NLS)" = "yes" ]; then \
	    for dir in $(DIRS) ; do \
	        $(MAKE) -C $$dir merge ; \
	    done ; \
	fi ;

install:
	if [ "$(USE_NLS)" = "yes" ]; then \
	    mkdir -p $(DESTDIR)$(LOCALEDIR) ;
	    for dir in $(DIRS) ; do \
	        $(MAKE) -C $$dir MSGFMT=$(MSGFMT) MSGMERGE=$(MSGMERGE) LOCALEDIR=$(DESTDIR)$(LOCALEDIR) format install ; \
	    done ; \
	fi ;

clean:
	rm -f Makefile
