File: makefile

package info (click to toggle)
aegis 4.24.3-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 34,056 kB
  • ctags: 12,500
  • sloc: cpp: 178,528; sh: 79,948; makefile: 34,813; yacc: 4,610; perl: 1,499; ansic: 492; awk: 325
file content (80 lines) | stat: -rw-r--r-- 2,011 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
#	aegis - project change supervisor
#	This file is in the Public Domain 2004 Peter Miller
#
# This is an example makefile for use when importing existing projexcts
# into Aegis.  Note that it assumes you are using GNU Automake and GNU
# Autoconf.  If you are not, this file is not use to you.
#

#
# Try to include the Makefile generated by ./configure If it exists, its
# contents will be used.  If it does not exist, GNU Make will try to
# build it, and then restart.
#
include Makefile

#
# Makefiles generated by GNU Automake define the "srcdir" macro right at
# the start.  If this macro has NOT been defined, it means the Makefile
# does not yet exist, and it needs to be constructed.
#
ifndef srcdir

bogus-default-target: Makefile
	$(MAKE) $(MAKECMDGOALS)

#
# Thsi is how to generate the Makefile and the config.h file.
#
Makefile: configure Makefile.in config.h.in
	rm -f config.cache
	./configure

#
# This is how to build the ./configure script.
#
configure: configure.ac config.h.in Makefile.in
	autoconf

#
# If your project needs any of those extra files you need to add them to
# this rule.  Only uncomment the dependencies you know you need.
#
#configure: aclocal.m4
#configure: install-sh missing mkinstalldir

#
# There are two different, but equally common, ways of creating the
# config.h.in file.  Select the one you need.  Note that some projets
# don't use config.h at all, and so you comment out both.
#
config.h.in: configure.ac aclocal.m4
	autoheader
#config.h.in: configure.ac aclocal.m4 acconfig.h
#	autoheader acconfig.h

#
# Only use this rule if the project uses GNU Automake.
#
Makefile.in: Makefile.am configure.ac config.h.in
	automake

aclocal.m4: configure.ac
	aclocal

#
# The following rules apply ONLY if your ./configure script needs them.
# See the configure rule, above.
#
AUTOMAKE_DIR=/usr/share/automake-1.7

install-sh: $(AUTOMAKE_DIR)/install-sh
	cp $^ $@

missing: $(AUTOMAKE_DIR)/missing
	cp $^ $@

mkinstalldirs: $(AUTOMAKE_DIR)/mkinstalldirs
	cp $^ $@
endif