File: Makefile

package info (click to toggle)
crack 5.0a-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,016 kB
  • sloc: ansic: 7,444; perl: 1,375; sh: 1,062; makefile: 218
file content (55 lines) | stat: -rw-r--r-- 1,444 bytes parent folder | download | duplicates (3)
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
###
# This program was written by and is copyright Alec Muffett 1991,
# 1992, 1993, 1994, 1995, and 1996, and is provided as part of the
# Crack v5.0 Password Cracking package.
#
# The copyright holder disclaims all responsibility or liability with
# respect to its usage or its effect upon hardware or computer
# systems, and maintains copyright as set out in the "LICENCE"
# document which accompanies distributions of Crack v5.0 and upwards.
###

all:
	@echo ""
	@echo "Please don't run 'make' yourself."
	@echo "Invoke 'Crack' to do it for you."
	@echo ""
	@echo "If you don't understand how to do this,"
	@echo "Then read the documentation."
	@echo ""
	@echo "If you still don't understand this,"
	@echo "then go fetch a guru to help."
	@echo ""
	@echo "If the guru doesn't understand,"
	@echo "get a new guru..."
	@echo ""

utils:  library
	@( cd src/util && make $(ARGS) || exit 1 )

library:
	@( cd src/lib && make $(ARGS) || exit 1 )

clean:
	-find . -name "*~" -print | xargs -n50 rm -f
	-( cd src; for dir in * ; do ( cd $$dir ; make clean ) ; done )
#	-make ARGS=clean utils
# skip this last one 'cos "clean" is a simple target caught by the loop

tidy: clean
	-scripts/plaster
	-scripts/fbmerge
	-rm -f lib/[DIEGTKM]*
	-rm -f lib/dict/gecos.*
	-rm -f lib/dict/gcperm.*

spotless: tidy
	-rm -rf lib/bin

rmdict:
	-rm -rf lib/dict

clobber: spotless rmdict
	-cat lib/F-merged >> F-merged.save
	-rm -rf lib
	( cd extra ; make clean )