Alopex

Check-in [86a9ab735d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:simplified to rely on built-in build rules
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256:86a9ab735d3b145262eb34469edbbd0497e9e421de4264e20da654ceebdbaa34
User & Date: jesse@mccluresk9.com 2014-02-13 22:55:23
Context
2014-02-13
23:00
seperate clean + distclean check-in: f387fa818a user: jesse@mccluresk9.com tags: trunk, master
22:55
simplified to rely on built-in build rules check-in: 86a9ab735d user: jesse@mccluresk9.com tags: trunk, master
22:42
crushed optimizer-revealed bug check-in: 941531a4c3 user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to Makefile.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
..
32
33
34
35
36
37
38
39
40
41
42
43
44

PROG     =  alopex
VER      =  3.0a
CC       ?= gcc
CFLAGS   += `pkg-config --cflags x11 cairo freetype2 xinerama`
LDFLAGS  += `pkg-config --libs x11 cairo freetype2 xinerama`
PREFIX   ?= /usr
MODULES  =  actions alopex atoms config draw tile xlib
#ICONS		=  tag cpu mem aud bat wfi clk
HEADERS  =  alopex.h actions.h
MANPAGES =  alopex.1
VPATH    =  src:doc

${PROG}: ${MODULES:%=%.o}
	@echo -e "\033[1;34m  ->\033[0m Linking alopex"
	@cd src && ${CC} -o ../${PROG} ${MODULES:%=%.o} ${LDFLAGS}

icons.png: ${ICONS:%=%.svg}
	@echo -e "\033[1;34m  ->\033[0m Building icons.png"
	@cd icons && ./makeicons

%.o: %.c ${HEADERS}
	@echo -e "\033[1;34m  ->\033[0m Building $<"
	@${CC} -c -o src/$@ $< ${CFLAGS} ${OPTS}

install: ${PROG}
	@install -Dm755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
	@mkdir -p ${DESTDIR}${PREFIX}/share/${PROG}
	@install -m644 -t ${DESTDIR}${PREFIX}/share/${PROG}/ share/*
	@install -Dm644 doc/alopex.1 ${DESTDIR}${PREFIX}/share/man/man1/alopex.1

................................................................................
${MANPAGES}: alopex.%: alopex-%.tex
	@latex2man $< doc/$@

man: ${MANPAGES}

clean:
	@rm -f ${PROG} ${PROG}-${VER}.tar.gz
	@cd src && rm -f ${MODULES:%=%.o}

dist: clean
	@tar -czf ${PROG}-${VER}.tar.gz *

.PHONY: clean dist man


|





<





<
<

<
<
<
<

<
<







 







|





1
2
3
4
5
6
7
8

9
10
11
12
13


14




15


16
17
18
19
20
21
22
..
23
24
25
26
27
28
29
30
31
32
33
34
35

PROG     =  alopex
VER      =  4.0a
CC       ?= gcc
CFLAGS   += `pkg-config --cflags x11 cairo freetype2 xinerama`
LDFLAGS  += `pkg-config --libs x11 cairo freetype2 xinerama`
PREFIX   ?= /usr
MODULES  =  actions alopex atoms config draw tile xlib

HEADERS  =  alopex.h actions.h
MANPAGES =  alopex.1
VPATH    =  src:doc

${PROG}: ${MODULES:%=%.o}







%.o: %.c ${HEADERS}



install: ${PROG}
	@install -Dm755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
	@mkdir -p ${DESTDIR}${PREFIX}/share/${PROG}
	@install -m644 -t ${DESTDIR}${PREFIX}/share/${PROG}/ share/*
	@install -Dm644 doc/alopex.1 ${DESTDIR}${PREFIX}/share/man/man1/alopex.1

................................................................................
${MANPAGES}: alopex.%: alopex-%.tex
	@latex2man $< doc/$@

man: ${MANPAGES}

clean:
	@rm -f ${PROG} ${PROG}-${VER}.tar.gz
	@rm -f ${MODULES:%=%.o}

dist: clean
	@tar -czf ${PROG}-${VER}.tar.gz *

.PHONY: clean dist man