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))
20 tftpd.build: lib.build
22 install: MCONFIG $(patsubst %, %.install, $(SUB))
25 install -m 755 tftpd/tftpd $(INSTALL_DIR)/bin
26 $(STRIP) $(INSTALL_DIR)/bin/tftpd
28 dynamic: all installnew
32 clean: localclean $(patsubst %, %.clean, $(SUB))
37 distclean: localdistclean $(patsubst %, %.distclean, $(SUB))
39 localdistclean: localclean
40 rm -f MCONFIG config.status config.log acconfig.h *~ \#*
42 find . -type f \( -name \*.orig -o -name \*.rej \) | xargs rm -f
45 rm -f configure acconfig.h.in
47 autoconf: configure acconfig.h.in
49 config: MCONFIG acconfig.h
55 MCONFIG: configure MCONFIG.in acconfig.h.in
59 : Generated by side effect
61 # Adding "configure" to the dependencies serializes this with running
62 # autoconf, because there are apparently race conditions between
63 # autoconf and autoheader.
64 acconfig.h.in: configure.in configure aclocal.m4
65 rm -f acconfig.h.in acconfig.h
68 configure: configure.in aclocal.m4
69 rm -f MCONFIG configure config.log acconfig.h config.cache
73 echo \#define VERSION \"tftp-hpa `cat version`\" > version.h