"Fossies" - the Fresh Open Source Software Archive

Member "rpm2html-1.11.2/Makefile.am" (13 Nov 2008, 3077 Bytes) of package /linux/privat/rpm2html-1.11.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 AUTOMAKE_OPTIONS=no-dependencies
    2 NAME=rpm2html
    3 
    4 FIND_FILES= cleanup.c compressor.c config.c html.c language.c		\
    5     memory.c rdf_api.c rdf.c rpm2html.c rpmdata.c rpmopen.c stringbuf.c	\
    6     sql.c sqltools.c config.h html.h language.h memory.h rdf_api.h	\
    7     rdf.h rpm2html.h rpmdata.h sql.h stringbuf.h
    8 MAKE_FILES=configure configure.in config.h.in Makefile.am Makefile.in \
    9            autogen.sh install-sh config.guess config.sub acconfig.h
   10 
   11 CONFIG= rpm2html.config rpm2html-rdf.config rpm2html-cdrom.config rpm2html-en.config
   12 USELESS=COPYING depcomp
   13 
   14 FILES= Copyright BUGS README TODO INSTALL CHANGES PRINCIPLES \
   15        missing NEWS AUTHORS \
   16        rpm2html.spec rpm2html.spec.in rpm2html.1 ChangeLog \
   17        msg.fr msg.es msg.de msg.pl msg.cz dir.png new.png \
   18        rpm2html.tpl \
   19        $(MAKE_FILES) $(CONFIG) $(RDF_FILES) $(FIND_FILES) $(USELESS)
   20 
   21 INCLUDES = -I$(top_srcdir) -I$(top_builddir) $(CFLAGS) $(XML_CFLAGS) \
   22            $(RPM_CFLAGS) $(SQL_FLAGS) $(GPG_FLAGS)
   23 
   24 noinst_PROGRAMS = compressor
   25 compressor_SOURCES = compressor.c
   26 compressor_LDFLAGS =
   27 compressor_LDADD = $(LIBS)
   28 
   29 LDADDS = $(XML_LIBS) $(LIBS)
   30 
   31 if WITH_MYSQL
   32 bin_PROGRAMS = rpm2html sqltools
   33 
   34 sqltools_SOURCES = sql.c cleanup.c config.c html.c language.c	\
   35     memory.c rdf_api.c rdf.c sqltools.c rpmdata.c rpmopen.c stringbuf.c \
   36     dir.png.h new.png.h
   37 sqltools_LDFLAGS =
   38 sqltools_LDADD = $(LDADDS)
   39 
   40 rpm2html_SOURCES = sql.c cleanup.c config.c html.c language.c	\
   41     memory.c rdf_api.c rdf.c rpm2html.c rpmdata.c rpmopen.c stringbuf.c \
   42     dir.png.h new.png.h
   43 rpm2html_LDFLAGS =
   44 rpm2html_LDADD = $(LDADDS)
   45 else
   46 bin_PROGRAMS = rpm2html
   47 
   48 rpm2html_SOURCES = cleanup.c config.c html.c language.c	\
   49     memory.c rdf_api.c rdf.c rpm2html.c rpmdata.c rpmopen.c stringbuf.c \
   50     dir.png.h new.png.h
   51 rpm2html_LDFLAGS =
   52 rpm2html_LDADD = $(LDADDS)
   53 endif
   54 
   55 all: rpm2html
   56 
   57 clean:
   58 	rm -f dir.png.h new.png.h
   59 
   60 html.o: dir.png.h new.png.h
   61 
   62 dir.png.h : $(srcdir)/dir.png $(top_builddir)/compressor
   63 	if [ ! -f dir.png ] ; then $(CP) $(srcdir)/dir.png . ; fi
   64 	$(top_builddir)/compressor dir.png
   65 
   66 new.png.h : $(srcdir)/new.png $(top_builddir)/compressor
   67 	if [ ! -f new.png ] ; then $(CP) $(srcdir)/new.png . ; fi
   68 	$(top_builddir)/compressor new.png
   69 
   70 distrib : clean pissmeoff
   71 	@(rm -rf $(NAME)-$(VERSION); ln -s . $(NAME)-$(VERSION))
   72 	@(cd $(srcdir) ; tar cvf - `for i in $(FILES); \
   73 	  do echo $(NAME)-$(VERSION)/$$i ; \
   74 	  done` | $(GZIP) > $(NAME)-$(VERSION).tar.gz)
   75 	@$(RM) $(srcdir)/$(NAME)-$(VERSION)
   76 
   77 rpm : distrib
   78 	@(rpmbuild -ta $(srcdir)/$(NAME)-$(VERSION).tar.gz)
   79 
   80 pissmeoff $(USELESS):
   81 	@rm -f $(USELESS)
   82 	@touch $(USELESS)
   83 
   84 install : $(bin_PROGRAMS)
   85 	install -c -d $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1/ \
   86 		$(DESTDIR)$(datadir)/$(NAME) $(DESTDIR)$(sysconfdir)
   87 	install -c rpm2html $(DESTDIR)$(bindir)
   88 	install -c -m 644 rpm2html.1 $(DESTDIR)$(mandir)/man1/
   89 	install -c -d $(DESTDIR)$(datadir)/$(NAME)
   90 	install -c -m 644 msg.* $(DESTDIR)$(datadir)/$(NAME)
   91 	install -c -m 644 rpm2html.config $(DESTDIR)$(sysconfdir)/rpm2html.config
   92 	@echo "Don't forget to edit $(sysconfdir)/rpm2html.config"