File:  [Public] / rpm2html / Makefile.in
Revision 1.24: download - view: text, annotated - select for diffs
Thu Apr 9 08:29:27 1998 UTC (26 years, 2 months ago) by httpng
Branches: MAIN
CVS tags: HEAD
Starting adding support for RDF, lot of changes, added a patch to Makefile.in,
Daniel

NAME	= rpm2html
VERSION	= 0.85

CC	= @CC@
#CC	= insight

CFLAGS	= @CFLAGS@
#CFLAGS	= -Wall -g -DDEBUG
#CFLAGS	= -Wall -O6

INCL	= -I. -IXML

RM	= @RM@ -f
MV	= @MV@ 
LN	= @LN_S@
TAR	= @TAR@
GZIP	= @GZIP@ -9

prefix	= @prefix@
exec_prefix= @exec_prefix@
bindir	= @bindir@
sysconfdir = @sysconfdir@
datadir	= @datadir@
mandir	= @prefix@/man

OBJS= rpm2html.o rpmopen.o rpmdata.o html.o config.o language.o rdf.o
LIBS= @LIBS@
FILES= COPYING README TODO INSTALL CHANGES PRINCIPLES \
       help.html config.c config.small 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 configure configure.in config.h.in Makefile.in \
       install-sh rpm2html.spec rpm2html.1 compressor.c dir.gif

all : rpm2html

force:

XML/libxml.a: force
	(cd XML; make CC="$(CC)" CFLAGS="$(CFLAGS)")

clean :
	$(RM) rpm2html $(OBJS) core errors.vim test/*
	(cd XML; make clean)

rpm2html : $(OBJS) XML/libxml.a
	$(CC) $(CFLAGS) -o $@ $(OBJS) -LXML -lxml $(LIBS)

compressor : compressor.o
	$(CC) $(CFLAGS) -o $@ compressor.o $(LIBS)

dir.gif.h : dir.gif compressor
	./compressor dir.gif

depends .depends: dir.gif.h
	$(CC) $(INCL) $(CCFLAGS) -MM *.c > .depends

.c.o:
	$(CC) $(CFLAGS) $(INCL) -c $<

install : rpm2html
	@(cd XML ; make install)
	@INSTALL@ rpm2html $(bindir)
	@INSTALL@ -m 644 rpm2html.1 $(mandir)/man1/
	if [ ! -d $(datadir)/$(NAME) ] ; then \
	   @INSTALL@ -d $(datadir)/$(NAME) ;\
	fi
	@INSTALL@ -m 644 msg.* $(datadir)/$(NAME)
	@INSTALL@ -m 644 rpm2html.config $(sysconfdir)/rpm2html.config
	@echo "Don't forget to edit $(sysconfdir)/rpm2html.config"

uninstall :
	@(cd XML ; make uninstall)
	$(RM) $(bindir)/rpm2html
	$(RM) $(mandir)/man1/rpm2html.1
	$(MV) $(sysconfdir)/rpm2html.config $(sysconfdir)/rpm2html.config.old
	$(RM) $(datadir)/$(NAME)/msg.*

include .depends

test tests : rpm2html
	rpm2html $(sysconfdir)/rpm2html.config

distrib : clean
	@$(LN) . $(NAME)-$(VERSION)
	@($(TAR) cvf - `for i in $(FILES) ; do echo $(NAME)-$(VERSION)/$$i ; \
	  done` | $(GZIP) > $(NAME)-$(VERSION).tar.gz)
	@$(RM) $(NAME)-$(VERSION)


Webmaster