commit b17499332b034ecde3994bfc5e3cbf110615f7ac parent e28b32c29674e44dd34bc01486b781c8037a650a Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 21 Feb 2011 23:27:06 +0100 Changed the make toolchain to work. Diffstat:
LICENSE | | | 0 | |
Makefile | | | 66 | +++++++++++++++++------------------------------------------------- |
config.mk | | | 0 |
3 files changed, 17 insertions(+), 49 deletions(-)
diff --git a/LICENSE b/LICENSE diff --git a/Makefile b/Makefile @@ -3,58 +3,26 @@ include config.mk -SRC = dwm.c -OBJ = ${SRC:.c=.o} - -all: options dwm - -options: - @echo dwm build options: - @echo "CFLAGS = ${CFLAGS}" - @echo "LDFLAGS = ${LDFLAGS}" - @echo "CC = ${CC}" - -.c.o: - @echo CC $< - @${CC} -c ${CFLAGS} $< - -${OBJ}: config.h config.mk - -config.h: - @echo creating $@ from config.def.h - @cp config.def.h $@ - -dwm: ${OBJ} - @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} - -clean: - @echo cleaning - @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz - -dist: clean +dist: @echo creating dist tarball - @mkdir -p dwm-${VERSION} - @cp -R LICENSE Makefile README config.def.h config.mk \ - dwm.1 ${SRC} dwm-${VERSION} - @tar -cf dwm-${VERSION}.tar dwm-${VERSION} - @gzip dwm-${VERSION}.tar - @rm -rf dwm-${VERSION} + @mkdir -p conn-${VERSION} + @cp -R LICENSE TODO.md README.md Makefile config.mk \ + bin etc conn-${VERSION} + @tar -cf conn-${VERSION}.tar conn-${VERSION} + @gzip conn-${VERSION}.tar + @rm -rf conn-${VERSION} install: all - @echo installing executable file to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f dwm ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm - @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 - @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 - @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 + @echo installing conn script to ${DESTDIR}${PREFIX}/bin + @cp bin/conn ${DESTDIR}${PREFIX}/bin + @chmod 755 ${DESTDIR}${PREFIX}/bin/conn + @echo installing etc files into ${DESTDIR}/etc/conn + @cp -R etc/conn ${DESTDIR}/etc/conn uninstall: - @echo removing executable file from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/dwm - @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 - @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1 + @echo removing conn script from ${DESTDIR}${PREFIX}/bin + @rm -f ${DESTDIR}${PREFIX}/bin/conn + @echo removing etc files from ${DESTDIR}/etc/conn + @rm -rf ${DESTDIR}/etc/conn -.PHONY: all options clean dist install uninstall +.PHONY: dist install uninstall diff --git a/config.mk b/config.mk