# Makefile.in for chpasswd.cgi CC ?= gcc LANGUAGE = English CGIDIR = /var/www/cgi-bin SRCDIR = . VPATH = . INSTALL = cp LIBCRYPT = -lcrypt CFLAGS += -w $(DEFINES) PREFIX = DEFS = -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCRYPT=1 -DHAVE_LIBC_H=1 -DHAVE_PWD_H=1 -DHAVE_STDIO_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TIME_H=1 -DHAVE_STRSTR=1 -DPREFIX=\"\" INSTALL_PROGRAM = $(INSTALL) SRCS = chpasswd.c OBJS = chpasswd.o DISTFILES = $(SRCS) all: chpasswd.cgi .c.o: $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) -D$(LANGUAGE) $< chpasswd.cgi: $(OBJS) $(CC) $(OBJS) $(LIBCRYPT) -o $@ install: all $(INSTALL_PROGRAM) chpasswd.cgi $(CGIDIR)/chpasswd.cgi chmod 755 $(CGIDIR)/chpasswd.cgi -@if test ! -d $(PREFIX); then \ echo "mkdir $(PREFIX)"; \ mkdir $(PREFIX); \ fi @if test ! -f $(PREFIX)/chpasswd.conf; then \ echo "cp $(PREFIX)/chpasswd.conf"; \ cp chpasswd.conf $(PREFIX)/chpasswd.conf; \ chmod 755 $(PREFIX)/chpasswd.conf; \ else \ cp chpasswd.conf $(PREFIX)/chpasswd.conf.orig; \ fi @if test ! -f $(PREFIX)/chpasswd.log; then \ echo "touch $(PREFIX)/chpasswd.log"; \ touch $(PREFIX)/chpasswd.log; \ chmod 775 $(PREFIX)/chpasswd.log; \ fi uninstall: rm -f $(CGIDIR)/chpasswd.cgi TAGS: $(SRCS) etags $(SRCS) clean: rm -f chpasswd.cgi *.o core mostlyclean: clean distclean: clean rm -f Makefile config.status config.cache config.log realclean: distclean rm -f TAGS