-
Notifications
You must be signed in to change notification settings - Fork 241
/
Makefile.am
50 lines (41 loc) · 1.5 KB
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src
man_MANS = gifsicle.1 @OTHERMANS@
EXTRA_DIST = COPYING README.md NEWS.md \
include/lcdf/clp.h include/lcdf/inttypes.h \
include/lcdfgif/gif.h include/lcdfgif/gifx.h \
gifsicle.1 gifview.1 gifdiff.1 logo.gif logo1.gif \
test/testie \
test/001-transexpand.testie \
test/002-cropresize.testie \
test/003-bgopt.testie \
test/004-careful.testie \
test/005-resize.testie \
test/006-unoptdisposal.testie \
test/007-alltransp.testie \
test/008-resizemix.testie \
test/009-zerowidth.testie \
test/010-warnings.testie \
test/011-resizemix.testie
gifsicle: config.h
@cd src && $(MAKE) gifsicle
gifdiff: config.h
@cd src && $(MAKE) gifdiff
gifview: config.h
@cd src && $(MAKE) gifview
srclinks:
cd $(top_srcdir); sh ./sourcecheckout.sh
versionize:
perl -pi -e "s/^\\.ds V.*/.ds V $(VERSION)/;" $(top_srcdir)/gifsicle.1 $(top_srcdir)/gifview.1 $(top_srcdir)/gifdiff.1
perl -pi -e "s/gifsicle [\d.]+/gifsicle $(VERSION)/; s/VERSION \"[\w.]+/VERSION \"$(VERSION)/;" $(top_srcdir)/src/win32cfg.h
dist-ungif: dist
$(AMTAR) xzf gifsicle-$(VERSION).tar.gz
@rm gifsicle-$(VERSION)/src/gifwrite.c
rm -rf ungifsicle-$(VERSION)
mv gifsicle-$(VERSION) ungifsicle-$(VERSION)
GZIP=$(GZIP_ENV) $(AMTAR) chozf ungifsicle-$(VERSION).tar.gz ungifsicle-$(VERSION)
rm -rf ungifsicle-$(VERSION)
check: all
$(top_srcdir)/test/testie -p $(top_builddir)/src $(top_srcdir)/test
.PHONY: srclinks versionize rpm dist-ungif rpm-ungif check