dwm

my dwm build
Log | Files | Refs | LICENSE

Makefile (761B)


      1 # dwm - dynamic window manager
      2 # See LICENSE file for copyright and license details.
      3 
      4 include config.mk
      5 
      6 SRC = drw.c dwm.c util.c
      7 OBJ = ${SRC:.c=.o}
      8 
      9 all: dwm
     10 
     11 .c.o:
     12 	${CC} -c ${CFLAGS} $<
     13 
     14 ${OBJ}: config.h config.mk
     15 
     16 dwm: ${OBJ}
     17 	${CC} -o $@ ${OBJ} ${LDFLAGS}
     18 
     19 clean:
     20 	rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
     21 
     22 dist: clean
     23 	mkdir -p dwm-${VERSION}
     24 	cp -R LICENSE Makefile README config.def.h config.mk\
     25 		drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
     26 	tar -cf dwm-${VERSION}.tar dwm-${VERSION}
     27 	gzip dwm-${VERSION}.tar
     28 	rm -rf dwm-${VERSION}
     29 
     30 install: all
     31 	mkdir -p ${DESTDIR}${PREFIX}/bin
     32 	cp -f dwm ${DESTDIR}${PREFIX}/bin
     33 	chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
     34 
     35 uninstall:
     36 	rm -f ${DESTDIR}${PREFIX}/bin/dwm
     37 
     38 .PHONY: all clean dist install uninstall