1 # You can do "make SUB=blah" to make only a few, or edit here, or both
2 # You can also run make directly in the subdirs you want.
4 SUB
= lib common tftp tftpd
6 %.build
: config
/MCONFIG config
/config.h version.h
7 $(MAKE
) -C
$(patsubst %.build
, %, $@
)
9 %.
install: config
/MCONFIG config
/config.h version.h
10 $(MAKE
) -C
$(patsubst %.
install, %, $@
) install
13 $(MAKE
) -C
$(patsubst %.
clean, %, $@
) clean
16 $(MAKE
) -C
$(patsubst %.
distclean, %, $@
) distclean
18 all: config
/MCONFIG
$(patsubst %, %.build
, $(SUB
))
20 tftp.build
: lib.build common.build
21 tftpd.build
: lib.build common.build
23 install: config
/MCONFIG
$(patsubst %, %.
install, $(SUB
))
25 clean: localclean
$(patsubst %, %.
clean, $(SUB
))
30 distclean: localdistclean
$(patsubst %, %.
distclean, $(SUB
))
32 localdistclean
: localclean
33 rm -f config
/config
/MCONFIG config.status config.log config
/config.h
*~ \
#*
35 find .
-type f \
( -name \
*.orig
-o
-name \
*.rej \
) | xargs
rm -f
38 rm -f configure config
/config.h.in tftp.spec
40 autoconf
: configure config
/config.h.in
42 config
: config
/MCONFIG config
/config.h
49 config
/MCONFIG
: configure config
/MCONFIG.in config
/config.h.in
50 if
test -x config.status
; then \
51 .
/config.status
--recheck
&& .
/config.status
; \
56 config
/config.h
: config
/MCONFIG
57 : Generated by side effect
59 configure
: configure.ac
62 config
/config.h.in
: configure
63 : Generated by side effect
66 echo \
#define VERSION \"tftp-hpa `cat version`\" > version.h
68 tftp.spec
: tftp.spec.in version
69 sed
-e
"s/@@VERSION@@/`cat version`/g" < $< > $@ ||
rm -f
$@