Fix the Sorcerer's Apprentice bug in both the client and the server.
[tftp-hpa.git] / Makefile
blob4c2369ed4288c0d2b4821db77fa16d70e1a6eccd
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 tftp tftpd
6 %.build:
7 $(MAKE) -C $(patsubst %.build, %, $@)
9 %.install:
10 $(MAKE) -C $(patsubst %.install, %, $@) install
12 %.clean:
13 $(MAKE) -C $(patsubst %.clean, %, $@) clean
15 %.distclean:
16 $(MAKE) -C $(patsubst %.distclean, %, $@) distclean
18 all: MCONFIG $(patsubst %, %.build, $(SUB))
20 install: MCONFIG $(patsubst %, %.install, $(SUB))
22 clean: $(patsubst %, %.clean, $(SUB))
24 distclean: $(patsubst %, %.distclean, $(SUB))
25 rm -f MCONFIG config.status config.log acconfig.h *~ \#*
26 rm -rf *.cache
27 find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f
29 spotless: distclean
30 rm -f configure acconfig.h.in
32 autoconf: configure acconfig.h.in
34 config: MCONFIG acconfig.h
36 release:
37 $(MAKE) autoconf
38 $(MAKE) distclean
40 MCONFIG: configure MCONFIG.in acconfig.h.in
41 ./configure
43 acconfig.h: MCONFIG
44 : Generated by side effect
46 acconfig.h.in: configure.in aclocal.m4
47 autoheader -f
48 touch -c acconfig.h.in
49 rm -f acconfig.h
51 configure: configure.in aclocal.m4
52 autoconf
53 rm -f MCONFIG config.cache config.log acconfig.h