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.
6 %.build
: MCONFIG acconfig.h version.h
7 $(MAKE
) -C
$(patsubst %.build
, %, $@
)
9 %.
install: MCONFIG acconfig.h version.h
10 $(MAKE
) -C
$(patsubst %.
install, %, $@
) install
13 $(MAKE
) -C
$(patsubst %.
clean, %, $@
) clean
16 $(MAKE
) -C
$(patsubst %.
distclean, %, $@
) distclean
18 all: MCONFIG
$(patsubst %, %.build
, $(SUB
))
21 tftpd.build
: lib.build
23 install: MCONFIG
$(patsubst %, %.
install, $(SUB
))
25 clean: localclean
$(patsubst %, %.
clean, $(SUB
))
30 distclean: localdistclean
$(patsubst %, %.
distclean, $(SUB
))
33 rm -f MCONFIG config.status config.log acconfig.h
*~ \
#*
35 find .
-type f \
( -name \
*.orig
-o
-name \
*.rej \
) | xargs
-r
rm -f
38 rm -f configure acconfig.h.in
40 autoconf
: configure acconfig.h.in
42 config
: MCONFIG acconfig.h
48 MCONFIG
: configure MCONFIG.in acconfig.h.in
52 : Generated by side effect
54 acconfig.h.in
: configure.in aclocal.m4
55 rm -f acconfig.h.in acconfig.h
58 configure
: configure.in aclocal.m4
59 rm -f MCONFIG configure config.log acconfig.h config.cache
63 echo \
#define VERSION \"tftp-hpa `cat version`\" > version.h