# $Id$ include $(TOPDIR)/Config.mk .PHONY: all install clean .SUFFIXES: .c .o @output@: @objects@ $(CC) $(LDFLAGS) -o $@ @objects@ $(LIBS) @ifreq@ .c.o: $(CC) $(CFLAGS) -c -o $@ $< install: @output@ mkdir -p $(PREFIX)/bin/ cp @output@ $(PREFIX)/bin/ if [ -f "@output@.1" ]; then \ mkdir -p $(PREFIX)/share/man/man1 ; \ cp @output@.1 $(PREFIX)/share/man/man1/ ; \ fi if [ -f "@output@.8" ]; then \ mkdir -p $(PREFIX)/share/man/man8 ; \ cp @output@.8 $(PREFIX)/share/man/man8/ ; \ fi clean: rm -f *.o @output@