-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
68 lines (57 loc) · 2.89 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
#/*****************************************************************************
# * Erik's Partial Archive Collator *
# * Copyright (C) 2002-2010 Erik Greenwald <[email protected]> *
# * *
# * This program takes a directory as an argument, then walks through the *
# * directory looking for duplicate and partially duplicate files. If it *
# * an exact duplicate, it deletes one and creates a hardlink to the other, *
# * minimizing disk usage. If it finds a pair of files where they contain the *
# * same data up to the size of the smaller file, it will prompt if you want *
# * to combine them. If you say yes, it will delete the smaller of the files *
# * and hardlink to the larger. *
# * *
# * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
# ****************************************************************************/
# $Id: Makefile.am,v 1.25 2010/01/06 01:06:52 erik Exp $
#if CHECK
#TESTDIR = tests
#endif
SUBDIRS = src tests debian
dist_man_MANS = epac.1
EXTRA_DIST = TODO epac.spec.in
.PHONY : rpm
rpm: dist
cp $(PACKAGE)-$(VERSION).tar.gz ${HOME}/rpm/SOURCES/
rpmbuild -ba $(PACKAGE).spec
cp ${HOME}/rpm/RPMS/i386/$(PACKAGE)-$(VERSION)-*.i386.rpm .
cp ${HOME}/rpm/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)
packages: rpm
docs:
doxygen doxygen.conf
make -C doxygen/latex
dvips -f doxygen/latex/refman.dvi > refman.ps
ps2pdf refman.ps
clean-local:
rm -rf doxygen refman.ps refman.pdf
test:
(cd src && make statictest)
# (cd tests && make test)