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