MANDIR=$(PREFIX)/man BINDIR=$(PREFIX)/bin SBINDIR=$(PREFIX)/sbin COMP=$(CC) $(CFLAGS) FISGBIN=$(BINPATH)fisg$(EXEEXT) FISGOBJS=th_args.o th_util.o th_config.o th_string.o \ parser.o userlist.o in_formats.o \ out_formats.o out_xhtml.o out_xhtmls.o out_xhtmln.o out_xhtmlgen.o fisg.o TARGETS=$(FISGBIN) # # Target rules # all: $(TARGETS) %.o: %.c %.h $(COMP) -c -o $@ $< out_xhtml.o: out_xhtml.c out_xhtml.i out_xhtmlgen.o $(COMP) -c -o $@ $< out_xhtmln.o: out_xhtmln.c out_xhtml.i out_xhtmlgen.o $(COMP) -c -o $@ $< out_xhtmls.o: out_xhtmls.c out_xhtml.i out_xhtmlgen.o $(COMP) -c -o $@ $< $(FISGBIN): $(FISGOBJS) fisg.h parser.h in_formats.h out_formats.h th_args.h th_config.h th_string.h th_util.h out_xhtml.i $(COMP) -o $@ $(FISGOBJS) $(LDFLAGS) # # Special targets # install: all $(INSTALL) $(FISGBIN) $(BINDIR)/ $(INSTALL) fisg.1 $(MANDIR)/ clean: $(RM) -f $(TARGETS) $(FISGOBJS) srcclean: clean $(RM) -f *~