File:  [Public] / rpm2html / Makefile.in
Revision 1.18: download - view: text, annotated - select for diffs
Sat Feb 28 18:56:38 1998 UTC (26 years, 3 months ago) by veillard
Branches: MAIN
CVS tags: HEAD
Incorporated the patch from Karl Eichwalder <ke@suse.de>, Daniel

NAME	= rpm2html
VERSION	= 0.70p1

CC	= @CC@
#CC	= insight

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

INCL	= -I.

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
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 msg.fr msg.es msg.de \
       rpmopen.c configure configure.in config.h.in Makefile.in \
       install-sh rpm2html.spec rpm2html.1

all : rpm2html

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

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

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

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

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

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