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
|
# makefile for ppmtoxvmini (also installs makexvpics)
# If you only have a K&R C compiler (surely just about impossible
# these days, but just in case...), uncomment this:
#KRDEF=-DKANDR
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
CFLAGS += $(KDREF)
# these are where makexvpics and ppmtoxvmini are installed
PREFIX = $(DESTDIR)/usr
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
INSTALL ?= install
# You shouldn't need to modify anything below this line.
all: ppmtoxvmini
ppmtoxvmini: ppmtoxvmini.o
$(CC) $(CFLAGS) -o ppmtoxvmini ppmtoxvmini.o
install: all
$(INSTALL) -m 511 ppmtoxvmini $(BINDIR)
$(INSTALL) -m 555 makexvpics.sh $(BINDIR)/makexvpics
$(INSTALL) -m 444 makexvpics.1 ppmtoxvmini.1 $(MANDIR)
clean:
$(RM) *.o *~ ppmtoxvmini
VERS=1.0.1
tgz: ../makexvpics-$(VERS).tar.gz
# Based on the example in ESR's Software Release Practice HOWTO.
#
../makexvpics-$(VERS).tar.gz: clean
$(RM) ../makexvpics-$(VERS)
@cd ..;ln -s makexvpics makexvpics-$(VERS)
cd ..;tar zchvf makexvpics-$(VERS).tar.gz \
--exclude='*/sav' makexvpics-$(VERS)
@cd ..;$(RM) makexvpics-$(VERS)
|