5 all: runtree programs configs
7 # Include configuration
11 @echo "You need to run configure first." && false
13 # Do not show strange errors if the BUILDSYS is not set
14 # (it happens if noone called configure as reported above)
17 # We will use the libucw build system
18 include $(BUILDSYS)/Maketop
20 EXTRA_RUNDIRS=run/subauthd lib/subauthd share/man/man1 share/man/man8
22 # Add the detected flags to all the global flags
23 CFLAGS+=$(LIBUCW_CFLAGS) $(LIBUCW_JSON_CFLAGS)
24 LIBS+=$(LIBUCW_LIBS) $(LIBUCW_JSON_LIBS)
29 include $(s)/server/Makefile
30 include $(s)/client/Makefile
31 include $(s)/pam/Makefile
33 ifdef CONFIG_APACHE_MOD
34 include $(s)/apache/Makefile
37 # And finally the default rules of the build system
38 include $(BUILDSYS)/Makebottom
40 # Our own rules for building man pages. They are a little bit hacky
41 # as a2x cannot produce output in a different directory.
42 $(o)/%.1: $(s)/%.1.txt
45 $(Q)a2x -f manpage $@.txt
46 $(Q)$(call symlink,$@,run/share/man/man1)
48 $(o)/%.8: $(s)/%.8.txt
51 $(Q)a2x -f manpage $@.txt
52 $(Q)$(call symlink,$@,run/share/man/man8)
54 # The dependency on %.1 is there to serialize both calls of asciidoc,
55 # which does not name temporary files safely.
56 $(o)/%.1.html: $(s)/%.1.txt $(o)/%.1
58 $(Q)a2x -f xhtml -D $(@D) $<
59 $(o)/%.8.html: $(s)/%.8.txt $(o)/%.8
61 $(Q)a2x -f xhtml -D $(@D) $<
66 git archive --format=tar --prefix=subauth-$(VERSION)/ HEAD | gzip >subauth-$(VERSION).tar.gz
67 rsync subauth-$(VERSION).tar.gz atrey:ftp/linux/
68 rsync $(HTML_DOCS) jw:www/static/sw/subauth/
69 ssh jw 'cd web && bin/release-prog subauth $(VERSION)'