-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (24 loc) · 671 Bytes
/
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
VER = 0
REV = 9
REL = "tiffscan 0.9"
TARGET = tiffscan
DISTFILES = tiffscan.c Makefile ChangeLog README TODO
LIBS = -lm -ltiff -lpopt -lsane -lpaper
CFLAGS = -std=gnu11 -I$(INCDIR) -L$(LIBDIR) $(LIBS) -D__VERSION=$(VER) -D__REVISION=$(REV) -D__RELEASE='$(REL)' -Wall
prefix = /usr
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
INSTALL = /usr/bin/install -c
all : $(TARGET)
clean:
rm -f $(TARGET) *~
DISTNAME = $(TARGET)-$(VER).$(REV)
DISTDIR = /tmp/$(DISTNAME)
dist:
mkdir -p $(DISTDIR)
for FILE in $(DISTFILES); do \
cp $$FILE $(DISTDIR); \
done
cd $(DISTDIR)/.. && tar cvzf $(DISTNAME).tar.gz $(DISTNAME)
install:
${INSTALL} ${TARGET} ${bindir}