forked from TrilbyWhite/Slider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 922 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (29 loc) · 922 Bytes
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
PROG = slider
VER = 3.0a
CC ?= gcc
DEFS = -DPROGRAM_NAME=${PROG} -DPROGRAM_VER=${VER}
DEPS = x11 cairo freetype2 poppler-glib xinerama
CFLAGS += $(shell pkg-config --cflags ${DEPS}) ${DEFS}
LDLIBS += $(shell pkg-config --libs ${DEPS}) -lm
PREFIX ?= /usr
MODULES = actions config media render slider xlib
HEADERS = slider.h xlib-actions.h
MANPAGES = slider.1
VPATH = src:doc
${PROG}: ${MODULES:%=%.o}
%.o: %.c ${HEADERS}
install: ${PROG}
@install -Dm755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
@install -Dm644 share/config ${DESTDIR}${PREFIX}/share/${PROG}/config
#@install -Dm644 ... manual page(s)
${MANPAGES}: slider.%: slider-%.tex
@latex2man $< doc/$@
man: ${MANPAGES}
clean:
@rm -f ${PROG}-${VER}.tar.gz ${MODULES:%=%.o}
distclean: clean
@rm -f ${PROG}
@rm -f ${PROG}-${ALT}
dist: distclean
@tar -czf ${PROG}-${VER}.tar.gz *
.PHONY: clean dist distclean man