quakeforge/Makefile.am
Bill Currie 732745c0ec Get the zip dist targets working.
The icon had changed names and a new icon was added. zip didn't appreciate
that.
2010-12-24 08:32:17 +09:00

54 lines
1.6 KiB
Makefile

## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS= foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS=RPM debian desktop doc include libs hw nq qtv qw tools ruamoko \
pkg-config vc2005 vc2008
## configure.ac needs to be listed here for older autoconfs
EXTRA_DIST= ChangeLog configure.ac bootstrap \
tools/cross/cross-configure.sh tools/cross/cross-make.sh \
tools/cross/cross.sh \
tools/gas2masm/Makefile tools/gas2masm/gas2masm.c \
tools/gas2masm/gas2masm.dsp tools/gas2masm/gas2masm.dsw \
tools/gas2masm/gas2masm.mak tools/gas2masm/gas2masm.mdp
NOCONV_DIST= $(distdir)/include/win32/resources/icon1Vista.ico \
$(distdir)/include/win32/resources/icon1XP.ico
changelog: ChangeLog
ChangeLog: FORCE
@if test -d "$(top_srcdir)/.git"; then \
echo "creating ChangeLog" && \
( cd "$(top_srcdir)" && \
echo 'This file is generated by Makefile; do not edit.'; \
echo; \
./missing --run git log --abbrev-commit --stat --no-merges \
) > $(top_builddir)/ChangeLog; \
else \
echo 'A git clone is required to generate ChangeLog' >&2; \
fi
dist-zip: distdir
-chmod -R a+r $(distdir)
ZIP="-r9q" zip $(distdir).zip $(NOCONV_DIST)
-rm -f $(NOCONV_DIST)
ZIP="-r9ql" zip $(distdir).zip $(distdir)
-rm -rf $(distdir)
dist-bz2: distdir
-chmod -R a+r $(distdir)
$(AMTAR) -cho $(distdir) | bzip2 -9 > $(distdir).tar.bz2
-rm -rf $(distdir)
dist-all-local: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(AMTAR) chozf $(distdir).tar.gz $(distdir)
$(AMTAR) -cho $(distdir) | bzip2 -9 > $(distdir).tar.bz2
ZIP="-r9q" zip $(distdir).zip $(NOCONV_DIST)
-rm -f $(NOCONV_DIST)
ZIP="-r9ql" zip $(distdir).zip $(distdir)
-rm -rf $(distdir)
FORCE: