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 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 74 75 76 77 78 79 80 81 82 83 84
|
VERSION=@cthumb_version@
REL=1
DD=cthumb-$(VERSION)
ED=cthumb-examples-$(VERSION)
# BSD and others please use rsync or cp -r, since cp -a is not available there.
CPR=@CPR@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
themedir=@themedir@
all: cthumb cthumb.spec
cthumb.spec: cthumb.spec.in Makefile VERSION
./configure --prefix=$(prefix)
cthumb.1: cthumb.1.in configure
./configure --prefix=$(prefix)
install: cthumb
install -d $(bindir) $(prefix)/share $(themedir) $(mandir)/man1
install -m555 cthumb $(bindir)
install cthumb.1 $(mandir)/man1
$(CPR) themes/* $(themedir)
Makefile: Makefile.in VERSION configure
./configure --prefix=/usr
cthumb: cthumb.in VERSION configure
./configure --prefix=/usr
dist: cthumb.spec cthumb
# make prefix=$(shell pwd)/$(DD) install
install -d $(DD)
install -m644 Makefile Makefile.in README TO-DO INSTALL BUGS VERSION AUTHORS ChangeLog cthumb.in cthumb cthumb.spec.in cthumb.spec perl-modules.tgz cthumbrc.sample cthumb.1 cthumb.1.in $(DD)
install -d $(DD)/themes
$(CPR) themes $(DD)
# $(CPR) ex* $(DD)
$(CPR) contrib $(DD)
install -m755 configure.in configure install-sh config.sub config.guess $(DD)
tar -czf $(DD).tar.gz $(DD)
mkdir -p releases
mv $(DD).tar.gz releases/
rm -rf $(DD)
rpm release: cthumb.spec configure ex-dist
./configure --prefix=/usr
mkdir -p releases
make dist; cp -f releases/cthumb-$(VERSION).tar.gz /usr/src/redhat/SOURCES/
make cthumb.spec
cp -f cthumb.spec /usr/src/redhat/SPECS/
(cd /usr/src/redhat/SPECS/; rpm -ba --clean cthumb.spec)
mv /usr/src/redhat/RPMS/noarch/cthumb-$(VERSION)-1.noarch.rpm releases/cthumb-$(VERSION)-1.noarch.rpm
mv /usr/src/redhat/SRPMS/cthumb-$(VERSION)-1.src.rpm releases/cthumb-$(VERSION)-1.src.rpm
rm -rf /usr/src/redhat/SOURCES/cthumb-$(VERSION).tar.gz
@echo
@echo done:
@echo releases/cthumb-$(VERSION).tar.gz
@echo releases/cthumb-$(VERSION)-1.src.rpm
@echo releases/cthumb-$(VERSION)-1.noarch.rpm
@echo releases/$(ED).tar.gz
ex-dist:
install -d $(ED)
(cd examples; rsync -a ex[0-9][0-9]-* ../$(ED))
tar -czf $(ED).tar.gz $(ED)
mv $(ED).tar.gz releases/
rm -rf $(ED)
examples: cthumb
(cd examples; for i in ex*; do (cd $$i; echo doing: $$i; make ); done;)
configure: configure.in
autoconf
clean:
-rm Makefile cthumb cthumb.1
distclean: clean
-rm config.log config.status config.cache
|