aewl

diff Makefile @ 1:f10194d4b76d

added gridmenu
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 16:49:43 +0200
parents 491f34c11291
children a79188fe4a40
line diff
     1.1 --- a/Makefile	Mon Jul 10 16:38:18 2006 +0200
     1.2 +++ b/Makefile	Mon Jul 10 16:49:43 2006 +0200
     1.3 @@ -3,12 +3,21 @@
     1.4  
     1.5  include config.mk
     1.6  
     1.7 -SRC      = wm.c
     1.8 -OBJ      = ${SRC:.c=.o}
     1.9 +SRC = wm.c
    1.10 +OBJ = ${SRC:.c=.o}
    1.11 +MAN = gridwm.1
    1.12 +BIN = gridwm gridmenu     
    1.13  
    1.14 -all: gridwm
    1.15 +all: config gridwm
    1.16  	@echo finished
    1.17  
    1.18 +config:
    1.19 +	@echo gridwm build options:
    1.20 +	@echo "LIBS     = ${LIBS}"
    1.21 +	@echo "CFLAGS   = ${CFLAGS}"
    1.22 +	@echo "LDFLAGS  = ${LDFLAGS}"
    1.23 +	@echo "CC       = ${CC}"
    1.24 +
    1.25  .c.o:
    1.26  	@echo CC $<
    1.27  	@${CC} -c ${CFLAGS} $<
    1.28 @@ -21,3 +30,26 @@
    1.29  
    1.30  clean:
    1.31  	rm -f gridwm *.o
    1.32 +
    1.33 +dist: clean
    1.34 +	mkdir -p gridwm-${VERSION}
    1.35 +	cp -R Makefile README LICENSE config.mk ${SRC} ${MAN} gridwm-${VERSION}
    1.36 +	tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
    1.37 +	gzip gridwm-${VERSION}.tar
    1.38 +	rm -rf gridwm-${VERSION}
    1.39 +
    1.40 +install: all
    1.41 +	@mkdir -p ${DESTDIR}${PREFIX}/bin
    1.42 +	@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
    1.43 +	@echo installed executable files to ${DESTDIR}${PREFIX}/bin
    1.44 +	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
    1.45 +	@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
    1.46 +	@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
    1.47 +
    1.48 +uninstall:
    1.49 +	for i in ${BIN}; do \
    1.50 +		rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
    1.51 +	done
    1.52 +	for i in ${MAN1}; do \
    1.53 +		rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
    1.54 +	done