NAME = rpm2html VERSION = 0.93 CC = @CC@ #CC = insure CFLAGS = @CFLAGS@ -Wall #CFLAGS = -Wall -g -DDEBUG #CFLAGS = -Wall -O6 LDFLAGS = @LDFLAGS@ LIBWWW_FLAGS= @LIBWWW_FLAGS@ LIBWWW_DIR= @LIBWWW_DIR@ INCL = -I. -IXML RM = @RM@ -f MV = @MV@ LN = @LN_S@ TAR = @TAR@ GZIP = @GZIP@ -9 prefix = @prefix@ exec_prefix= @exec_prefix@ bindir = @bindir@ libdir = @libdir@ sysconfdir = @sysconfdir@ datadir = @datadir@ mandir = @prefix@/man OBJS= rpmopen.o rpmdata.o html.o config.o language.o rdf.o rdf_api.o FIND_OBJS= deps.o rpmfind.o transport.o LIBS= @LIBS@ XML_FILES=XML/Makefile.in XML/entities.h XML/entities.c XML/tree.h \ XML/tree.c XML/parser.h XML/parser.c XML/tester.c RDF_FILES=rdf.c rdf.h rdf_api.c rdf_api.h FIND_FILES=rpmfind.c rpmfind.h deps.c deps.h transport.c transport.h MAKE_FILES= configure configure.in config.h.in Makefile.in \ install-sh config.guess config.sub MakeWWW.frag FILES= Copyright README TODO INSTALL CHANGES PRINCIPLES \ help.html config.c html.c html.h \ rpm2html.c rpm2html.config rpm2html.h rpmdata.c rpmdata.h \ language.h language.c rdf.c rdf.h msg.fr msg.es msg.de \ rpmopen.c rpm2html.spec rpm2html.1 compressor.c dir.gif new.gif \ $(MAKE_FILES) $(CONFIG) $(XML_FILES) $(RDF_FILES) $(FIND_FILES) CONFIG= rpm2html-cdrom.config rpm2html-en.config rpm2html.config.mirrors \ rpm2html-fr.config rpm2html.config.resources rpm2html-rdf.config all : rpm2html rpmfind #include the fragment "MakeWWW.frag" for java if configured in @libwww_frag@ force: XML/libxml.a: force (cd XML; make CC="$(CC)" CFLAGS="$(CFLAGS)") clean : $(RM) rpm2html rpmfind compressor $(FIND_OBJS) $(OBJS) rpm2html.o \ compressor.o core errors.vim test/* (cd XML; make clean) rpm2html : rpm2html.o $(OBJS) XML/libxml.a $(CC) $(LDFLAGS) $(CFLAGS) -o $@ rpm2html.o $(OBJS) -L. -LXML -lxml $(LIBS) rpmfind : $(FIND_OBJS) $(OBJS) XML/libxml.a $(WWW_LIB) $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(FIND_OBJS) $(OBJS) -L. -LXML -lxml $(LIBS) $(WWW_LIB) compressor : compressor.o $(CC) $(CFLAGS) -o $@ compressor.o $(LIBS) transport.o : transport.c transport.h config.h $(WWW_INC) $(CC) $(CFLAGS) $(INCL) $(LIBWWW_FLAGS) -DHAVE_CONFIG_H -c transport.c dir.gif.h : dir.gif compressor ./compressor dir.gif new.gif.h : new.gif compressor ./compressor new.gif depends .depends: dir.gif.h new.gif.h $(WWW_INC) *.h @$(CC) $(INCL) $(CCFLAGS) -MM *.c > .depends .c.o: $(CC) $(CFLAGS) $(INCL) -c $< install : rpm2html @(cd XML ; make install) @INSTALL@ rpm2html $(bindir) @INSTALL@ rpmfind $(bindir) @INSTALL@ -m 644 rpm2html.1 $(mandir)/man1/ if [ ! -d $(datadir)/$(NAME) ] ; then \ @INSTALL@ -d $(datadir)/$(NAME) ;\ fi @INSTALL@ -m 644 msg.* $(datadir)/$(NAME) if [ "$(sysconfdir)" = "/usr/etc" ] ; then \ @INSTALL@ -m 644 rpm2html.config /etc/rpm2html.config ; \ else \ @INSTALL@ -m 644 rpm2html.config $(sysconfdir)/rpm2html.config ; \ fi @echo "Don't forget to edit $(sysconfdir)/rpm2html.config" uninstall : @(cd XML ; make uninstall) $(RM) $(bindir)/rpm2html $(RM) $(bindir)/rpmfind $(RM) $(mandir)/man1/rpm2html.1 if [ "$(sysconfdir)" = "/usr/etc" ] ; then \ $(MV) /etc/rpm2html.config /etc/rpm2html.config.old ; \ else \ $(MV) $(sysconfdir)/rpm2html.config $(sysconfdir)/rpm2html.config.old ; \ fi $(RM) $(datadir)/$(NAME)/msg.* include .depends rdf_api : rdf_api.c XML/libxml.a $(CC) $(CFLAGS) $(INCL) -DDEBUG_RDF -o rdf_api rdf_api.c -LXML -lxml test tests : rpm2html rpm2html $(sysconfdir)/rpm2html.config distrib : clean @$(LN) . $(NAME)-$(VERSION) @(if [ "$(LIBWWW_DIR)" != "" ] ; then \ if [ "$(LIBWWW_DIR)" != "libwww" ] ; then \ $(LN) $(LIBWWW_DIR) libwww ; fi ; fi ) @($(TAR) cvf - `for i in $(FILES) $(WWW_FILES); \ do echo $(NAME)-$(VERSION)/$$i ; \ done` | $(GZIP) > $(NAME)-$(VERSION).tar.gz) @$(RM) $(NAME)-$(VERSION) @(if [ "$(LIBWWW_DIR)" != "" ] ; then \ if [ "$(LIBWWW_DIR)" != "libwww" ] ; then \ $(RM) libwww ; fi ; fi )