File:  [Public] / rpm2html / Makefile.in
Revision 1.12: download - view: text, annotated - select for diffs
Mon Feb 9 19:49:40 1998 UTC (26 years, 3 months ago) by veillard
Branches: MAIN
CVS tags: HEAD
Added Spanish support info, repackaging, Daniel.

NAME	= rpm2html
VERSION	= 0.50

CC	= @CC@
#CC	= insight

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

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

prefix	= @prefix@
exec_prefix= @exec_prefix@
bindir	= @bindir@
datadir	= @datadir@

OBJS= rpm2html.o rpmopen.o rpmdata.o html.o config.o language.o
LIBS= -lrpm -ldb
FILES= COPYING README TODO INSTALL CHANGES PRINCIPLES \
       config.c config.small html.c html.h \
       rpm2html.c rpm2html.config rpm2html.h rpmdata.c rpmdata.h \
       language.h language.c msg.fr msg.es \
       rpmopen.c configure configure.in config.h.in Makefile.in \
       install-sh

all : rpm2html

clean :
	$(RM) rpm2html $(OBJS) core errors.vim test/*

rpm2html : $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

depends .depends:
	$(CC) $(CFLAGS) -MM *.c > .depends

install : rpm2html
	@INSTALL@ rpm2html $(bindir)
	@INSTALL@ rpm2html.config $(datadir)/rpm2html.config
	@echo "Don't forget to edit $(datadir)/rpm2html.config"

include .depends

test tests : rpm2html
	rpm2html $(datadir)/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