3
top_srcdir = @top_srcdir@
7
CFLAGS = @CFLAGS@ @DEFS@ -I.
12
INSTALL_DATA = @INSTALL_DATA@
14
# Installation locations
19
sources = update-passwd.c
20
objects = $(patsubst %.c, %.o, $(sources))
21
gen_autoheader = config.h.in
22
gen_autoconf = configure
23
gen_configure = config.cache config.status config.log \
24
confdefhs.h config.h Makefile
29
mkdir -p $(DESTDIR)$(sbindir)
30
$(INSTALL) update-passwd $(DESTDIR)$(sbindir)/
31
mkdir -p $(DESTDIR)$(mandir)/man8
32
$(INSTALL_DATA) update-passwd.8 $(DESTDIR)$(mandir)/man8/
34
update-passwd: $(objects)
35
$(CC) $(LDFLAGS) -o $@ $^
38
$(RM) update-passwd update-passwd.o core
40
mrproper realclean: clean
41
$(RM) $(gen_configure)
44
for i in $(gen_autoconf) $(gen_autoheader) ; do \
45
$(RM) $(srcdir)/$$i ; \
48
.PHONY: all install clean mrproper cvsclean