2007-06-28 10:47:08 -07:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2006-06-16 14:11:20 -07:00
|
|
|
BASELIST = anims audio components effects features \
|
|
|
|
gamedesc.lev images messages misc multiplay novideo.rpl palette.bin script \
|
2007-07-28 04:35:26 -07:00
|
|
|
sequenceaudio stats structs texpages wrf locale
|
2007-02-13 14:01:05 -08:00
|
|
|
PATCHLIST = addon.lev anims components effects \
|
|
|
|
messages multiplay stats structs wrf
|
2007-08-16 10:38:28 -07:00
|
|
|
GRIMLIST = components structs texpages wrf
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
BASEARCHIVE=warzone.wz
|
|
|
|
PATCHARCHIVE=mp.wz
|
2007-08-16 10:38:28 -07:00
|
|
|
GRIMARCHIVE=grim.wz
|
2007-01-08 17:28:01 -08:00
|
|
|
|
2007-08-16 10:38:28 -07:00
|
|
|
CLEANFILES=$(BASEARCHIVE) $(PATCHARCHIVE) $(GRIMARCHIVE)
|
2007-02-15 07:36:25 -08:00
|
|
|
|
2006-12-23 09:26:58 -08:00
|
|
|
# Remove this line when Automake 1.10 becomes standard
|
|
|
|
MKDIR_P=$(mkdir_p)
|
|
|
|
|
2007-08-16 10:38:28 -07:00
|
|
|
data: $(BASEARCHIVE) $(PATCHARCHIVE) $(GRIMARCHIVE)
|
2006-12-24 17:43:01 -08:00
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
$(BASEARCHIVE): $(BASELIST)
|
|
|
|
zip -ru0 $@ $(BASELIST) -x *svn*
|
|
|
|
zip -T $@
|
2006-12-24 17:43:01 -08:00
|
|
|
|
2007-01-21 11:15:09 -08:00
|
|
|
$(PATCHARCHIVE): $(PATCHLIST:%=mp/%)
|
2007-01-08 17:28:01 -08:00
|
|
|
cd mp && zip -ru0 ../$@ $(PATCHLIST) -x *svn*
|
|
|
|
zip -T $@
|
2006-12-24 17:43:01 -08:00
|
|
|
|
2007-08-16 10:38:28 -07:00
|
|
|
$(GRIMARCHIVE): $(GRIMLIST:%=grim/%)
|
|
|
|
cd grim && zip -ru0 ../$@ $(GRIMLIST) -x *svn*
|
|
|
|
zip -T $@
|
|
|
|
|
|
|
|
install-data-local: $(BASEARCHIVE) $(PATCHARCHIVE) $(GRIMARCHIVE)
|
2007-02-26 12:10:51 -08:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgdatadir)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$(BASEARCHIVE) $(DESTDIR)$(pkgdatadir)/$(BASEARCHIVE)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$(PATCHARCHIVE) $(DESTDIR)$(pkgdatadir)/$(PATCHARCHIVE)
|
2007-08-16 13:40:11 -07:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(pkgdatadir)/mods/global
|
2007-08-16 10:38:28 -07:00
|
|
|
$(INSTALL_DATA) $(srcdir)/$(GRIMARCHIVE) $(DESTDIR)$(pkgdatadir)/mods/global/$(GRIMARCHIVE)
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
uninstall-local:
|
2007-02-26 12:10:51 -08:00
|
|
|
rm -f $(DESTDIR)$(pkgdatadir)/$(BASEARCHIVE)
|
|
|
|
rm -f $(DESTDIR)$(pkgdatadir)/$(PATCHARCHIVE)
|
2007-08-16 10:38:28 -07:00
|
|
|
rm -f $(DESTDIR)$(pkgdatadir)/mods/global/$(GRIMARCHIVE)
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
installcheck:
|
2007-01-08 17:28:01 -08:00
|
|
|
[ -f $(BASEARCHIVE) ] && zip -T $(BASEARCHIVE)
|
|
|
|
[ -f $(PATCHARCHIVE) ] && zip -T $(PATCHARCHIVE)
|
2007-08-16 10:38:28 -07:00
|
|
|
[ -f $(GRIMARCHIVE) ] && zip -T $(GRIMARCHIVE)
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
dist-hook: $(BASEARCHIVE) $(PATCHARCHIVE)
|
|
|
|
cp -fu $(BASEARCHIVE) $(DESTDIR)$(distdir)
|
|
|
|
cp -fu $(PATCHARCHIVE) $(DESTDIR)$(distdir)
|
2007-08-16 10:38:28 -07:00
|
|
|
cp -fu $(GRIMARCHIVE) $(DESTDIR)$(distdir)
|