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
|
#
# makefile for quelcom 0.4.0
#
# all variables exported by default to sub-makefiles
export
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib
LOCALEDIR=$(PREFIX)/share/locale
INFODIR=$(PREFIX)/info
MANDIR=$(PREFIX)/man
PACKAGE=quelcom
VERSION=0.4.0
CXX=g++
STRIP=strip
DIRS=lib bin doc po
all:
for i in $(DIRS); \
do \
make -C $$i; \
done
clean:
for i in $(DIRS); \
do \
make -C $$i clean; \
done
# installs the deprecated man pages
installman:
make -C doc installman
install: all
for i in $(DIRS); \
do \
make -C $$i install; \
done
package:
# include generated doc un .mo files
make -C doc
make -C po
# clean package
rm -rf quelcom-$(VERSION)
mkdir -p quelcom-$(VERSION)
cp -f makefile ChangeLog INSTALL README TODO quelcom-$(VERSION)
# binary files
mkdir -p quelcom-$(VERSION)/bin
cp bin/*.cc bin/makefile quelcom-$(VERSION)/bin
# library files
mkdir -p quelcom-$(VERSION)/lib
cp lib/*.{cc,hh} lib/makefile quelcom-$(VERSION)/lib
# documentation files
mkdir -p quelcom-$(VERSION)/doc
cp -f doc/*.texinfo doc/quelcom.* doc/texinfo.tex doc/makefile quelcom-$(VERSION)/doc
cp -Rf doc/old.man.pages quelcom-$(VERSION)/doc
# po/mo files
mkdir -p quelcom-$(VERSION)/po
cp -f po/*.{po,mo} po/makefile quelcom-$(VERSION)/po
# build tar file
tar cvzf quelcom-$(VERSION).tar.gz quelcom-$(VERSION)
tgz:
tar cvzf quelcom-$(VERSION)-`date +%Y%m%d-%H%M.tgz` bin/*.cc bin/makefile makefile [A-Z]* doc/* tud* bin/pendents/* Doxyfile lib/*.{cc,hh} lib/makefile po/*.{po,mo} po/makefile
|