Debian Codegraph @

Makefile.in

raw
1 # Copyright (C) 2008, Bertrand Mesot <http://www.objectif-securite.ch>
2 # 2008, Cedric Tissieres <http://www.objectif-securite.ch>
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-13, USA
17
18 # General variables
19 SHELL = /bin/sh
20
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23 bindir = $(exec_prefix)/bin
24
25 INSTALL = @INSTALL@
26
27 PACKAGE = @PACKAGE_NAME@
28 VERSION = @PACKAGE_VERSION@
29 distdir = $(PACKAGE)-$(VERSION)
30
31 DISTFILES = \
32 aclocal.m4 \
33 AUTHORS \
34 ChangeLog \
35 config \
36 config.h.in \
37 configure \
38 configure.in \
39 COPYING \
40 INSTALL \
41 install-sh \
42 LICENSE \
43 LICENSE.OpenSSL \
44 Makefile.in \
45 NEWS \
46 README.md \
47 config.sub \
48 config.guess \
49 src
50
51 all:
52 $(MAKE) -C src
53
54 install: all
55 @echo "Creating directories..."
56 $(INSTALL) -d $(DESTDIR)$(bindir)
57 @echo "Copying binary..."
58 $(INSTALL) src/ophcrack $(DESTDIR)$(bindir)
59
60 uninstall:
61 @echo "Deleting binary and manpages..."
62 rm -f $(DESTDIR)$(bindir)/ophcrack
63
64 clean:
65 rm -f *~
66 $(MAKE) -C src clean
67
68 distclean: clean
69 $(MAKE) -C src distclean
70 rm -f Makefile
71 rm -f config.h config.status config.log
72 rm -rf autom4te.cache
73 rm -f src/gui/ophcrack_win32.rc src/gui/gui.pro src/gui/Info.plist
74 rm -f src/gui/Makefile
75
76 dist: distclean
77 rm -rf $(distdir)
78 mkdir $(distdir)
79 cp -r $(DISTFILES) $(distdir)
80 for dir in `find ${distdir} -name .svn -type d`; do rm -rf $$dir; done
81 for file in `find ${distdir} -name .gitignore -type f`; do rm -f $$file; done
82 tar cfj $(distdir).tar.bz2 $(distdir)
83 rm -rf $(distdir)
84
85 # automatic re-running of configure if the configure.in file has changed
86 configure: configure.in aclocal.m4
87 autoconf
88
89 # autoheader might not change config.h.in, so touch a stamp file
90 config.h.in: stamp-h.in
91 stamp-h.in: configure.in aclocal.m4
92 autoheader
93 echo timestamp > stamp-h.in
94
95 config.h: stamp-h
96 stamp-h: config.h.in config.status
97 ./config.status
98 Makefile: Makefile.in $(wildcard src/*.in) $(wildcard src/*/*.in) config.status
99 ./config.status
100 config.status: configure
101 ./config.status --recheck