2 # Top-level Unix makefile for the GIFLIB package
3 # Should work for all Unix versions
8 cd lib; make static shared
12 cd lib; make install-lib
13 cd util; make install-all
16 cd lib; make uninstall-lib
17 cd util; make uninstall-all
22 rm -f giflib-$(VERSION)-1.i386.rpm giflib-$(VERSION)-1.src.rpm \
23 giflib-$(VERSION).tar.gz core giflib.lsm
25 giflib-$(VERSION).tar:
26 (cd ..; tar cvf giflib-$(VERSION)/giflib-$(VERSION).tar `cat giflib-$(VERSION)/MANIFEST | sed "/\(^\| \)/s// giflib-$(VERSION)\//g"`)
27 giflib-$(VERSION).tar.gz: giflib-$(VERSION).tar
28 gzip -f giflib-$(VERSION).tar
31 make giflib-$(VERSION).tar.gz
32 lsmgen.sh $(VERSION) `wc -c giflib-$(VERSION).tar.gz` >giflib.lsm
33 make giflib-$(VERSION).tar.gz
34 ls -l giflib-$(VERSION).tar.gz
35 @echo "Don't forget to build RPMs from root!"
37 SHAROPTS = -l63 -n giflib -o giflib -a -s esr@snark.thyrsus.com
38 giflib-$(VERSION).shar:
39 (cd ..; shar $(SHAROPTS) `cat MANIFEST | sed "/\(^\| \)/s// bs-$(VERSION)\//g"`)
41 # You need to be root to make this work
42 RPMROOT=/usr/src/redhat
47 cp giflib-$(VERSION).tar.gz $(RPMROOT)/SOURCES;
48 $(srcdir)/specgen.sh $(VERSION) >$(RPMROOT)/SPECS/giflib.spec
49 cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) giflib.spec
50 cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/giflib-$(VERSION)*.rpm $(srcdir)
51 cp $(RPMROOT)/SRPMS/giflib-$(VERSION)*.src.rpm $(srcdir)