-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (48 loc) · 1.31 KB
/
Copy pathMakefile
File metadata and controls
64 lines (48 loc) · 1.31 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
##
# Makefile automatically generated by genmake 1.0, Mar-16-97
# genmake 1.0 by ma_muquit@fccc.edu, RCS
##
CC= cc
DEFS=
PROGNAME= grabc
LIBS= -L/usr/X11R6/lib -lX11
INCLUDES= -I.
cp=/bin/cp -fv
DESTDIR =
binary=./grabc
manpage=./grabc.1
bindir=/usr/local/bin
mandir=/usr/local/share/man/man1
# replace -O with -g in order to debug
DEFINES= $(INCLUDES) $(DEFS) -D__USE_FIXED_PROTOTYPES__ -DSYS_UNIX=1
CFLAGS= -O $(DEFINES)
SRCS = grabc.c
OBJS = grabc.o
.c.o:
rm -f $@
$(CC) $(CFLAGS) -c $*.c
all: $(PROGNAME)
$(PROGNAME) : $(OBJS)
$(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
doc:
pod2man grabc.pod > grabc.1
install: installdirs install-bin install-man
install-bin:
${cp} ${binary} ${DESTDIR}${bindir}
installdirs:
$(SHELL) ./mkinstalldirs ${DESTDIR}${bindir}
$(SHELL) ./mkinstalldirs ${DESTDIR}${mandir}
install-man:
${cp} ${manpage} ${DESTDIR}${mandir}
deb:
/bin/rm -f *.deb
/bin/rm -rf /tmp/grabc
make DESTDIR=/tmp/grabc install
fpm -s dir -t deb -C /tmp/grabc --name grabc --version 1.0.2 --iteration 1 --description "A program to id entify a pixel color on an X Window"
/bin/rm -rf /tmp/grabc
uninstall:
rm -f ${DESTDIR}${bindir}/grabc
rm -f ${DESTDIR}${mandir}/grabc.1
clean:
rm -f $(OBJS) $(PROGNAME) core *.deb
.PHONY: all doc install install-bin installdirs install-man deb uninstall clean