]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - locale/Makefile
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / locale / Makefile
index c8de26b4a1c828fa2bc81be851502de545b3de31..569af950287fc2f72f4afc83956b9af98dcd21ee 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile 5335 2006-03-24 02:56:20Z mike $"
+# "$Id: Makefile 181 2006-06-22 20:01:18Z jlovell $"
 #
 #   Locale file makefile for the Common UNIX Printing System (CUPS).
 #
@@ -51,11 +51,15 @@ depend:
 # Install files...
 #
 
-install:       all
+install:       all $(INSTALL_LANGUAGES)
+
+install-languages:
        $(INSTALL_DIR) -m 755 $(LOCALEDIR)
        for loc in $(LANGUAGES) ; do \
-               $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \
-               $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
+               if test -f cups_$$loc.po; then \
+                       $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \
+                       $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
+               fi ; \
        done
 
 
@@ -63,12 +67,12 @@ install:    all
 # Uninstall files...
 #
 
-uninstall:
+uninstall: $(UNINSTALL_LANGUAGES)
+
+uninstall-languages:
        -for loc in $(LANGUAGES) ; do \
                $(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
-               $(RMDIR) $(LOCALEDIR)/$$loc ; \
        done
-       -$(RMDIR) $(LOCALEDIR)
 
 
 #
@@ -108,5 +112,5 @@ translate.o:        ../cups/http.h ../cups/i18n.h ../cups/language.h ../cups/string.h
 
 
 #
-# End of "$Id: Makefile 5335 2006-03-24 02:56:20Z mike $".
+# End of "$Id: Makefile 181 2006-06-22 20:01:18Z jlovell $".
 #