Introduction
Introduction Statistics Contact Development Disclaimer Help
makefile needs to install new files - ii - irc it, simple FIFO based irc client
git clone git://git.suckless.org/ii
Log
Files
Refs
README
LICENSE
---
commit 29eb17dea0830a540fe1234c582c073678e4faa9
parent b2188116d16b82c4f76dda1904c867928ae9e24a
Author: Nico Golde <[email protected]>
Date: Sat, 3 Feb 2007 13:09:13 +0100
makefile needs to install new files
Diffstat:
M Makefile | 8 +++++++-
M config.mk | 2 ++
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/Makefile b/Makefile
@@ -23,7 +23,7 @@ options:
dist: clean
@mkdir -p ii-${VERSION}
- @cp -R Makefile README FAQ LICENSE config.mk ii.c ii.1 ii-${VERSION}
+ @cp -R query.sh Makefile README FAQ LICENSE config.mk ii.c ii.1 ii-${V…
@tar -cf ii-${VERSION}.tar ii-${VERSION}
@gzip ii-${VERSION}.tar
@rm -rf ii-${VERSION}
@@ -34,13 +34,19 @@ ii: ${OBJ}
@${CC} -o $@ ${OBJ} ${LDFLAGS}
install: all
+ @mkdir -p ${DESTDIR}${DOCDIR}
+ @mkdir -p ${DESTDIR}${BINDIR}
+ @mkdir -p ${DESTDIR}${MAN1DIR}
+
@install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MAN1DIR}
+ @install -m 644 README query.sh FAQ LICENSE ${DESTDIR}${DOCDIR}
@install -m 775 ii ${DESTDIR}${BINDIR}
@install -m 444 ii.1 ${DESTDIR}${MAN1DIR}
@echo "installed ii"
uninstall: all
rm -f ${DESTDIR}${MAN1DIR}/ii.1
+ rm -rf ${DESTDIR}${DOCDIR}
rm -f ${DESTDIR}${BINDIR}/ii
clean:
diff --git a/config.mk b/config.mk
@@ -5,6 +5,8 @@ PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man
MAN1DIR = ${MANDIR}/man1
+DOCDIR = ${PREFIX}/share/doc/ii
+
# Set the following to install to a different root
DESTDIR =
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.