]> mj.ucw.cz Git - subauth.git/blob - server/Makefile
Debian: Re-packaged for Bookworm
[subauth.git] / server / Makefile
1 DIRS+=server
2
3 PROGS+=$(o)/server/subauthd $(o)/server/subauthd.8
4 CONFIGS+=subauthd
5 HTML_DOCS+=$(o)/server/subauthd.8.html
6
7 $(o)/server/subauthd: $(addprefix $(o)/server/, subauthd.o cmd.o auth.o temp.o)
8 $(o)/server/subauthd: LIBS+=$(LIBGCRYPT_LIBS)
9 $(o)/server/auth.o: CFLAGS+=$(LIBGCRYPT_CFLAGS)
10
11 .PHONY: install-server
12 install:: install-server
13 install-server:
14         install -d -m 755 $(DESTDIR)$(INSTALL_SBIN_DIR) $(DESTDIR)$(INSTALL_CONFIG_DIR) $(DESTDIR)$(INSTALL_MAN_DIR)/man8
15         install -m 755 $(o)/server/subauthd $(DESTDIR)$(INSTALL_SBIN_DIR)
16         install -m 644 run/etc/subauthd $(DESTDIR)$(INSTALL_CONFIG_DIR)
17         install -m 644 run/share/man/man8/subauthd.8 $(DESTDIR)$(INSTALL_MAN_DIR)/man8
18         install -d -m 750 $(DESTDIR)$(INSTALL_STATE_DIR)/subauthd