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