annotate Makefile @ 778:7ea91d4d0882

rename eprint() -> die()
author meillo@marmaro.de
date Mon, 16 Feb 2009 16:18:25 +0100 (2009-02-16)
parents 794a83e74023
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
1 # aewl - a fork of dwm, the dynamic window manager
741
7c5d5b1e49c9 fixed copyright notice in Makefile
Anselm R. Garbe <arg@suckless.org>
parents: 729
diff changeset
2 # (C)opyright MMVI-MMVII Anselm R. Garbe
0
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
3
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
4 include config.mk
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
5
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
6
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
7 all: options aewl
0
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
8
91
c4f8d7695833 simplified Makefile
Anselm R. Garbe <garbeam@wmii.de>
parents: 75
diff changeset
9 options:
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
10 @echo aewl build options:
1
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
11 @echo "CFLAGS = ${CFLAGS}"
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
12 @echo "LDFLAGS = ${LDFLAGS}"
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
13 @echo "CC = ${CC}"
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
14
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
15 aewl.o: aewl.c config.h config.mk
0
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
16 @echo CC $<
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
17 @${CC} -c ${CFLAGS} $<
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
18
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
19 aewl: aewl.o
729
9c3bf42bdbf4 got rid of LD (inspired by JGs patch to wmii)
Anselm R. Garbe <arg@suckless.org>
parents: 643
diff changeset
20 @echo CC -o $@
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
21 @${CC} -o $@ aewl.o ${LDFLAGS}
204
38acc0874280 added stripping to dwm target in Makefile
arg@10ksloc.org
parents: 186
diff changeset
22 @strip $@
0
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
23
491f34c11291 initial import
Anselm R. Garbe <garbeam@wmii.de>
parents:
diff changeset
24 clean:
180
6d2bc1d3a00d applied Sanders Makefile patch
arg@10ksloc.org
parents: 176
diff changeset
25 @echo cleaning
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
26 @rm -f aewl *.o aewl-*.tar.gz
1
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
27
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
28 dist: clean
180
6d2bc1d3a00d applied Sanders Makefile patch
arg@10ksloc.org
parents: 176
diff changeset
29 @echo creating dist tarball
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
30 @mkdir -p aewl-${VERSION}
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
31 @cp -R LICENSE Makefile README config.h config.mk \
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
32 aewl.1 aewl.h ${SRC} aewl-${VERSION}
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
33 @tar -cf aewl-${VERSION}.tar aewl-${VERSION}
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
34 @gzip aewl-${VERSION}.tar
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
35 @rm -rf aewl-${VERSION}
1
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
36
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
37 install: all
180
6d2bc1d3a00d applied Sanders Makefile patch
arg@10ksloc.org
parents: 176
diff changeset
38 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
1
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
39 @mkdir -p ${DESTDIR}${PREFIX}/bin
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
40 @cp -f aewl ${DESTDIR}${PREFIX}/bin
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
41 @chmod 755 ${DESTDIR}${PREFIX}/bin/aewl
180
6d2bc1d3a00d applied Sanders Makefile patch
arg@10ksloc.org
parents: 176
diff changeset
42 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
1
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
43 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
775
794a83e74023 updated man page; minor stuff
meillo@marmaro.de
parents: 759
diff changeset
44 @cp -f aewl.1 ${DESTDIR}${MANPREFIX}/man1
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
45 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/aewl.1
1
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
46
f10194d4b76d added gridmenu
Anselm R. Garbe <garbeam@wmii.de>
parents: 0
diff changeset
47 uninstall:
180
6d2bc1d3a00d applied Sanders Makefile patch
arg@10ksloc.org
parents: 176
diff changeset
48 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
49 @rm -f ${DESTDIR}${PREFIX}/bin/aewl
180
6d2bc1d3a00d applied Sanders Makefile patch
arg@10ksloc.org
parents: 176
diff changeset
50 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
759
45f23169563e renamed dwm to aewl
meillo@marmaro.de
parents: 757
diff changeset
51 @rm -f ${DESTDIR}${MANPREFIX}/man1/aewl.1
174
48c820470858 applied Sanders doc changes, added a PHONY line and changed the output of config.h creation somewhat
arg@10ksloc.org
parents: 172
diff changeset
52
48c820470858 applied Sanders doc changes, added a PHONY line and changed the output of config.h creation somewhat
arg@10ksloc.org
parents: 172
diff changeset
53 .PHONY: all options clean dist install uninstall