File: Makefile.in

package info (click to toggle)
netboot 0.8.1-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,728 kB
  • ctags: 4,740
  • sloc: ansic: 15,152; asm: 11,623; yacc: 2,248; makefile: 1,110; pascal: 1,108; lex: 748; sh: 233
file content (120 lines) | stat: -rw-r--r-- 3,101 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#
# Makefile  -  makefile for miscellaneous programs and files
#
# Copyright (C) 1998 Gero Kuhlmann   <gero@gkminix.han.de>
#
#  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
#  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.
#


# Directory names
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
libdir = @libdir@
confdir = @sysconfdir@


# Name of configuration file
config  = @CONFIGFILE@


# Manual page section
MANEXT	= 5


# Specify all subdirectories where we are going to make something
SUBDIRS	= romcheck
ALL_SUBDIRS = config $(SUBDIRS)


############# Do not touch anything below this line #####################

CC      = @CC@
INSTALL = @INSTALL@
@SET_MAKE@


.PHONY:	all distrib install dep

all:		makec $(config) $(config).man
	@for subdir in $(SUBDIRS); do \
	  echo making $@ in $$subdir; \
	  (cd $$subdir && $(MAKE) $@) || exit 1; \
	done


# distrib generates all files which are not removed by distclean
# We need makec for distrib targets in some other Makefiles, so build
# it here as well.
distrib:	makec
	@for subdir in $(ALL_SUBDIRS); do \
	  echo making $@ in $$subdir; \
	  (cd $$subdir && $(MAKE) $@) || exit 1; \
	done


makec:		makec.c
	$(CC) -o makec makec.c


$(config):	netboot.config.in
	sed "s&%PREFIX%&@prefix@&" netboot.config.in >$(config)


$(config).man:	netboot.config.man.in
	sed "s&%CONFIG%&@sysconfdir@/@CONFIGFILE@&;s&%LIBDIR%&@libdir@&" netboot.config.man.in >$(config).man


install:	$(config) $(config).man
	$(INSTALL) -d $(confdir)
	$(INSTALL) -d $(mandir)
	$(INSTALL) -m 644 -o bin -g bin $(config) $(confdir)/$(config)
	$(INSTALL) -m 644 -o bin -g bin $(config).man $(mandir)/man$(MANEXT)/$(config).$(MANEXT)
	@for subdir in $(ALL_SUBDIRS); do \
	  echo making $@ in $$subdir; \
	  (cd $$subdir && $(MAKE) $@) || exit 1; \
	done


dep:
	@for subdir in $(ALL_SUBDIRS); do \
	  echo making $@ in $$subdir; \
	  (cd $$subdir && $(MAKE) $@) || exit 1; \
	done


.PHONY:	clean realclean distclean
.PHONY:	clean-recursive realclean-recursive distclean-recursive

clean:	clean-recursive
	rm -f makec $(config) $(config).man core

realclean: 	realclean-recursive
	rm -f makec $(config) $(config).man core
	rm -f Makefile

distclean:	distclean-recursive
	rm -f makec $(config) $(config).man core
	rm -f Makefile

clean-recursive realclean-recursive distclean-recursive:
	@for subdir in $(ALL_SUBDIRS); do \
	  target=`echo $@ | sed 's/-recursive//'`; \
	  echo making $$target in $$subdir; \
	  (cd $$subdir && $(MAKE) $$target) || exit 1; \
	done