From: Stas D. <sta...@us...> - 2012-02-25 16:57:03
|
Update of /cvsroot/husky/areastat In directory vz-cvs-4.sog:/tmp/cvs-serv6090 Modified Files: Makefile Log Message: Use man features for the *.gz creation Index: Makefile =================================================================== RCS file: /cvsroot/husky/areastat/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Makefile 25 Feb 2012 15:56:45 -0000 1.6 +++ Makefile 25 Feb 2012 16:57:00 -0000 1.7 @@ -2,7 +2,7 @@ # # Generic Makefile for areastat (estt by Dmitry Rusov) -.PHONY=docs html info mans clean distclean uninstall all install +.PHONY: docs html info mans clean distclean uninstall all install ifeq ($(DEBIAN), 1) # Every Debian-Source-Paket has one included. @@ -52,8 +52,10 @@ docs: #info html -mans: $(MANS) - -for m in $(MANS); do echo Create $$m.gz; gzip -9c $$m > $$m.gz ; done +man: $(foreach m,$(MANS),$(m).gz) + +%.gz: % + gzip -9c $< > $@ clean: rm -f *.o *~ src/*.o src/*~ |