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
|
RCSS = SPEC.in Makefile.in configure.in appindex-lsm TODO README\
appindex.conf binfiles COPYING
VERS = @VERSION@
OSTYPE = @OS_TYPE@
all: appindex dbconv
tarball: distclean
(cd ..; tar cf appindex-$(VERS).tar appindex-$(VERS)/;\
bzip2 -9f appindex-$(VERS).tar)
rpm:
cp SPEC /usr/src/redhat/SPECS/appindex-$(VERS).spec
make tarball
cp ../appindex-$(VERS).tar.bz2 /usr/src/redhat/SOURCES/
rpm -ba /usr/src/redhat/SPECS/appindex-$(VERS).spec
cp /usr/src/redhat/RPMS/i386/appindex-$(VERS)-1.i386.rpm ../
cp /usr/src/redhat/SRPMS/appindex-$(VERS)-1.src.rpm ../
ci:
ci -f -l$(VERS) $(RCSS)
make -C src ci
appindex:
make -C src appindex
dbconv:
make -C src dbconv
clean:
rm -f *~ *.o core
make -C src clean
distclean: clean
rm -f config.status config.log config.h Makefile config.cache SPEC
make -C src distclean
install: appindex
##mkdir -p $(PREFIX)/bin
##mkdir -p $(PREFIX)/var/lib/appindex
##mkdir -p $(PREFIX)/man/man1
##mkdir -p $(PREFIX)/etc
@INSTALL@ -c -g root -o root -m 755 -s src/appindex $(PREFIX)/bin
@INSTALL@ -c -g root -o root -m 755 src/fetchappindex $(PREFIX)/bin
@INSTALL@ -c -g root -o root -m 755 src/fetchlsm $(PREFIX)/bin
##@INSTALL@ -c -g root -o root -m 644 appindex.conf $(PREFIX)/etc
@INSTALL@ -c -g root -o root -m 644 doc/appindex.1 $(PREFIX)/man/man1/
@echo --- IMPORTANT ---
@echo Appindex was installed successfully. This package doesn\'t contain
@echo database file\(s\), please download them using \`fetchappindex\'.
@echo If you were using appindex-0.4 read the readme file now. Really.
binary: install
tar cf ../appindex-$(VERS)-$(OSTYPE).tar `cat binfiles`
bzip2 -9f ../appindex-$(VERS)-$(OSTYPE).tar
@echo "Binary package ../appindex-$(VERS)-$(OSTYPE).tar.bz2 built."
indent:
make -C src indent
|