-
Notifications
You must be signed in to change notification settings - Fork 75
/
Makefile.in
85 lines (67 loc) · 1.97 KB
/
Makefile.in
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
datarootdir = @datarootdir@
datadir = @datadir@
VERSION = @PACKAGE_VERSION@
CC = @CC@
INSTALL = @INSTALL@
CFLAGS = @CFLAGS@ @X_CFLAGS@ @DEFS@
LDFLAGS = @LDFLAGS@ @LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ -lX11 -lXmu
STRIP = @STRIP@
OBJS = xclib.o xcprint.o xclip.o
.PHONY: all
all: xclip
xclip: $(X11OBJ) $(OBJS)
$(CC) $(OBJS) $(CFLAGS) -o $@ $(X11OBJ) $(LDFLAGS)
install: installbin install.man
.PHONY: installbin
installbin: xclip xclip-copyfile xclip-pastefile xclip-cutfile
mkdir -p $(DESTDIR)$(bindir)
$(INSTALL) $^ $(DESTDIR)$(bindir)
.PHONY: install.man
install.man: xclip.1 xclip-copyfile.1
mkdir -p $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 644 $^ $(DESTDIR)$(mandir)/man1
.PHONY: clean
clean:
rm -f *.o *~ xclip xclip-$(VERSION).tar.gz borked
.PHONY: distclean
distclean: clean
rm -rf autom4te.cache config.log config.status Makefile
.PHONY: dist
dist: xclip-$(VERSION).tar.gz
.PHONY: xclip-$(VERSION).tar.gz
xclip-$(VERSION).tar.gz:
mkdir -p /tmp/xclip-make-dist-dir
ln -sf `pwd` /tmp/xclip-make-dist-dir/xclip-$(VERSION)
(cd /tmp/xclip-make-dist-dir; \
tar zcvf xclip-$(VERSION)/xclip-$(VERSION).tar.gz \
xclip-$(VERSION)/COPYING \
xclip-$(VERSION)/README \
xclip-$(VERSION)/ChangeLog \
xclip-$(VERSION)/configure \
xclip-$(VERSION)/configure.ac \
xclip-$(VERSION)/bootstrap \
xclip-$(VERSION)/xclip-copyfile \
xclip-$(VERSION)/xclip-pastefile \
xclip-$(VERSION)/xclip-cutfile \
xclip-$(VERSION)/install-sh \
xclip-$(VERSION)/Makefile.in \
xclip-$(VERSION)/xclip.spec \
xclip-$(VERSION)/*.c \
xclip-$(VERSION)/*.h \
xclip-$(VERSION)/xclip-copyfile.1 \
xclip-$(VERSION)/xclip.1 )
rm -rf /tmp/xclip-make-dist-dir
Makefile: Makefile.in configure
./config.status
configure: configure.ac
./bootstrap
borked: borked.c xclib.o xcprint.o
$(CC) $^ $(CFLAGS) -o $@ $(X11OBJ) $(LDFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -o $@ -c $<