<URL: http://bugs.freeciv.org/Ticket/Display.html?id=37811 >

 data/scenarios/Makefile.am defines its own clean -target removing
gzipped scenario files. This is bad in several ways. First: it
overrides automake provided clean -target. Second: other targets, such
as distclean, do not remove files.
 This patch properly uses variable MOSTLYCLEANFILES.


 - ML

diff -Nurd -X.diff_ignore freeciv/data/scenario/Makefile.am freeciv/data/scenario/Makefile.am
--- freeciv/data/scenario/Makefile.am	2007-03-05 21:10:01.000000000 +0200
+++ freeciv/data/scenario/Makefile.am	2007-03-09 05:26:25.000000000 +0200
@@ -26,8 +26,6 @@
 $(zipped_files): %.sav.gz: %.sav
 	$(GZIP) --best -c $< > $@
 
-.PHONY: clean
-clean:
-	rm -f $(zipped_files)
+MOSTLYCLEANFILES = $(zipped_files)
 
 EXTRA_DIST = $(unzipped_files)
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to