2005-12-19 16:39:54 +03:00
|
|
|
# ii - irc it - simple but flexible IRC client
|
2007-02-01 13:56:45 +03:00
|
|
|
# (C)opyright MMV-MMVII Anselm R. Garbe, Nico Golde
|
2005-12-19 16:39:54 +03:00
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
|
|
|
SRC = ii.c
|
|
|
|
OBJ = ${SRC:.c=.o}
|
|
|
|
|
|
|
|
all: options ii
|
|
|
|
@echo built ii
|
|
|
|
|
|
|
|
options:
|
|
|
|
@echo ii build options:
|
|
|
|
@echo "LIBS = ${LIBS}"
|
|
|
|
@echo "INCLUDES = ${INCLUDES}"
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
@echo CC $<
|
|
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
|
|
|
|
dist: clean
|
|
|
|
@mkdir -p ii-${VERSION}
|
2007-02-03 15:09:13 +03:00
|
|
|
@cp -R query.sh Makefile README FAQ LICENSE config.mk ii.c ii.1 ii-${VERSION}
|
2005-12-19 16:39:54 +03:00
|
|
|
@tar -cf ii-${VERSION}.tar ii-${VERSION}
|
|
|
|
@gzip ii-${VERSION}.tar
|
|
|
|
@rm -rf ii-${VERSION}
|
|
|
|
@echo created distribution ii-${VERSION}.tar.gz
|
|
|
|
|
|
|
|
ii: ${OBJ}
|
|
|
|
@echo LD $@
|
|
|
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
|
|
|
|
install: all
|
2007-02-03 15:09:13 +03:00
|
|
|
@mkdir -p ${DESTDIR}${DOCDIR}
|
|
|
|
@mkdir -p ${DESTDIR}${BINDIR}
|
|
|
|
@mkdir -p ${DESTDIR}${MAN1DIR}
|
|
|
|
|
2006-03-16 18:35:03 +03:00
|
|
|
@install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MAN1DIR}
|
2007-02-03 15:09:13 +03:00
|
|
|
@install -m 644 README query.sh FAQ LICENSE ${DESTDIR}${DOCDIR}
|
2006-03-16 18:35:03 +03:00
|
|
|
@install -m 775 ii ${DESTDIR}${BINDIR}
|
|
|
|
@install -m 444 ii.1 ${DESTDIR}${MAN1DIR}
|
2005-12-19 16:39:54 +03:00
|
|
|
@echo "installed ii"
|
|
|
|
|
|
|
|
uninstall: all
|
2007-02-03 15:10:12 +03:00
|
|
|
@rm -f ${DESTDIR}${MAN1DIR}/ii.1
|
|
|
|
@rm -rf ${DESTDIR}${DOCDIR}
|
|
|
|
@rm -f ${DESTDIR}${BINDIR}/ii
|
|
|
|
@echo "uninstalled ii"
|
2005-12-19 16:39:54 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ii *~ *.o *core
|