1######################################################################## 2# rand # 3# Copyright (C) 1998-2012 Erik Greenwald <erik@brlcad.org> # 4# # 5# This program is free software; you can redistribute it and/or modify # 6# it under the terms of the GNU General Public License as published by # 7# the Free Software Foundation; either version 2 of the License, or # 8# (at your option) any later version. # 9# # 10# This program is distributed in the hope that it will be useful, # 11# but WITHOUT ANY WARRANTY; without even the implied warranty of # 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 13# GNU General Public License for more details. # 14# # 15# You should have received a copy of the GNU General Public License # 16# along with this program; if not, write to the Free Software # 17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # 18# # 19######################################################################## 20 21#if TEST 22#TEST=test 23#endif 24TEST= 25 26SUBDIRS = debian m4 src docs po $(TEST) 27RPMDIR = $(HOME)/rpmbuild 28 29.PHONY : rpm docs test indent lint grind hist histo histogram 30rpm: dist 31 mkdir -p $(RPMDIR) $(RPMDIR)/SOURCES $(RPMDIR)/SRPMS $(RPMDIR)/RPMS $(RPMDIR)/RPMS/i386 32 cp $(PACKAGE)-$(VERSION).tar.gz $(RPMDIR)/SOURCES/ 33 rpmbuild -ba $(PACKAGE).spec 34 cp $(RPMDIR)/RPMS/i386/$(PACKAGE)-$(VERSION)-*.i386.rpm . 35 cp $(RPMDIR)/SRPMS/$(PACKAGE)-$(VERSION)-*.src.rpm . 36 37.PHONY : deb 38deb: dist 39 rm -rf $(PACKAGE)-$(VERSION) 40 tar zxvf $(PACKAGE)-$(VERSION).tar.gz 41 (cd $(PACKAGE)-$(VERSION) && fakeroot debian/rules binary) 42 (cd $(PACKAGE)-$(VERSION) && debuild -us -uc) 43 rm -rf $(PACKAGE)-$(VERSION) 44 45lint indent: 46 make -C src $@ 47 48test: 49 make -C test test 50 51docs: 52 doxygen docs/doxygen.conf 53 make -C docs/doxygen/latex 54 dvips -f docs/doxygen/latex/refman.dvi > refman.ps 55 ps2pdf refman.ps 56 57grind: 58 /bin/ls | valgrind --leak-check=yes -v --show-reachable=yes --track-fds=yes src/rand 2> dump 59 60hist histo histogram: 61 for a in `head -n 1000 config.log` ; do /bin/ls | src/rand | head -n 1 ; done | sort | uniq -c | sort -nr 62 63fhist fhisto fhistogram: 64 for a in `head -n 100 config.log` ; do /bin/ls | src/rand | head -n 1 ; done | sort | uniq -c | sort -nr 65 66EXTRA_DIST= config.rpath ChangeLog $(PACKAGE).spec.in rand.lsm.in TODO 67 68ACLOCAL_AMFLAGS = -I m4 69