Makefile.in 1.96 KB
Newer Older
1
#########################################################################
2
# $Id$ 
3 4 5
# 
# Makefile for jpegoptim
#
6
Version = 1.3.1
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
PKGNAME = jpegoptim

SHELL = /bin/sh

DEFS = @DEFS@

srcdir = @srcdir@
VPATH = @srcdir@

prefix = @prefix@
exec_prefix = @exec_prefix@

# Where to install the executables.
bindir = $(exec_prefix)/bin

# Where to put libraries
libdir = $(prefix)/lib

# Where to put the Info files
infodir = $(prefix)/share/info

# Where to put the manual pages.
mandir = $(prefix)/share/man



CC        = @CC@ 
XCPPFLAGS = @CPPFLAGS@
35
CFLAGS    = @CFLAGS@ $(XCPPFLAGS) $(DEFS)
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
LDFLAGS   = @LDFLAGS@
LIBS      = @LIBS@
STRIP     = strip


INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

@SET_MAKE@

# should be no reason to modify lines below this
#########################################################################

DIRNAME = $(shell basename `pwd`) 
DISTNAME  = $(PKGNAME)-$(Version)

OBJS = $(PKGNAME).o @GNUGETOPT@

$(PKGNAME):	$(OBJS) 
	$(CC) $(CFLAGS) -o $(PKGNAME) $(OBJS) $(LDFLAGS) $(LIBS) 

all:	$(PKGNAME) 

strip:
	for i in $(PKGNAME) ; do [ -x $$i ] && $(STRIP) $$i ; done

clean:
	rm -f *~ *.o core a.out make.log \#*\# $(PKGNAME) $(OBJS)

clean_all: clean
	rm -f Makefile config.h config.log config.cache config.status

dist:	clean_all
	(cd .. ; tar cvzf $(DISTNAME).tar.gz $(DIRNAME))

backup:	dist

74 75 76 77
archive:
	git archive --format tar --prefix ${DISTNAME}/ -o ../${DISTNAME}.tar master
	gzip -v -9 ../${DISTNAME}.tar

78 79

install: all install.dirs install.man
80
	$(INSTALL) -m 755 $(PKGNAME) $(DESTDIR)/$(bindir)/$(PKGNAME)
81 82 83 84 85

printable.man:
	groff -Tps -mandoc ./$(PKGNAME).1 >$(PKGNAME).ps
	groff -Tascii -mandoc ./$(PKGNAME).1 | tee $(PKGNAME).prn | sed 's/.//g' >$(PKGNAME).txt

86
install.man: install.dirs
87
	$(INSTALL) -m 644 $(PKGNAME).1 $(DESTDIR)/$(mandir)/man1/$(PKGNAME).1
88 89

install.dirs:
90 91
	$(INSTALL) -d -m 755 $(DESTDIR)/$(mandir)/man1
	$(INSTALL) -d -m 755 $(DESTDIR)/$(bindir)
92 93 94 95 96 97

# a tradition !
love:	
	@echo "Not War - Eh?"
# eof