Blob Blame History Raw

-include ../Makefile.conf
include ../Makefile.rules

GENFILES = $(patsubst %.in, %, $(wildcard *.[58].in))

.SUFFIXES: .in

.in:
	sed -e 's|@@initdir@@|$(initdir)|g' \
	    -e 's|@@autofsmapdir@@|$(autofsmapdir)|g' \
	    -e "s|@@autofsconfdir@@|$(autofsconfdir)|g" \
	< $< > $@

all: $(GENFILES)

install: all
	install -d -m 755 $(INSTALLROOT)$(mandir)/man5
	install -c *.5 -m 644 $(INSTALLROOT)$(mandir)/man5
	install -d -m 755 $(INSTALLROOT)$(mandir)/man8
	install -c *.8 -m 644 $(INSTALLROOT)$(mandir)/man8

clean:
	rm -f $(GENFILES)