[PATCH] Add temporary locate files to the "clean" target.

subsurface at henrik.synth.no subsurface at henrik.synth.no
Fri Oct 19 00:50:14 PDT 2012


From: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>

The update-po-files target creates backup files.  Let's add them
to the "clean" target.

Signed-off-by: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 43d63a9..c32e949 100644
--- a/Makefile
+++ b/Makefile
@@ -195,9 +195,9 @@ install-cross-windows: $(NAME)
 	done
 
 update-po-files:
-	xgettext -o subsurface-new.pot -s -k_ -kN_ --keyword=C_:1c,2  --add-comments="++GETTEXT" *.c
+	xgettext -o po/subsurface-new.pot -s -k_ -kN_ --keyword=C_:1c,2  --add-comments="++GETTEXT" *.c
 	for i in po/*.po; do \
-		msgmerge -s -U $$i subsurface-new.pot ; \
+		msgmerge -s -U $$i po/subsurface-new.pot ; \
 	done
 
 file.o: file.c dive.h file.h
@@ -273,5 +273,5 @@ doc:
 	$(MAKE) -C Documentation doc
 
 clean:
-	rm -f $(OBJS) *~ $(NAME) $(NAME).exe
+	rm -f $(OBJS) *~ $(NAME) $(NAME).exe po/*~ po/subsurface-new.pot
 	rm -rf share
-- 
1.7.11.5



More information about the subsurface mailing list