2007-08-17 10:42:17 -07:00
|
|
|
SUBDIRS = mods
|
|
|
|
|
2008-01-05 05:37:49 -08:00
|
|
|
BASELIST = anims audio components effects features tagdefinitions \
|
2008-01-21 09:06:31 -08:00
|
|
|
gamedesc.lev images messages misc multiplay novideo.rpl script \
|
2007-08-17 11:37:08 -07:00
|
|
|
sequenceaudio stats structs texpages wrf
|
2007-02-13 14:01:05 -08:00
|
|
|
PATCHLIST = addon.lev anims components effects \
|
|
|
|
messages multiplay stats structs 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-17 10:42:17 -07:00
|
|
|
CLEANFILES=$(BASEARCHIVE) $(PATCHARCHIVE)
|
2007-02-15 07:36:25 -08:00
|
|
|
|
2007-08-17 10:42:17 -07:00
|
|
|
data: $(BASEARCHIVE) $(PATCHARCHIVE)
|
2007-09-22 04:45:49 -07:00
|
|
|
$(MAKE) $(AM_MAKEFLAGS) -C mods data
|
2006-12-24 17:43:01 -08:00
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
$(BASEARCHIVE): $(BASELIST)
|
2008-01-08 05:24:25 -08:00
|
|
|
(cd $(srcdir) && zip -ru0 $(abs_builddir)/$@ $(BASELIST) -x *svn*)
|
2007-01-08 17:28:01 -08:00
|
|
|
zip -T $@
|
2006-12-24 17:43:01 -08:00
|
|
|
|
2007-01-21 11:15:09 -08:00
|
|
|
$(PATCHARCHIVE): $(PATCHLIST:%=mp/%)
|
2008-01-08 05:24:25 -08:00
|
|
|
(cd $(srcdir)/mp && zip -ru0 $(abs_builddir)/$@ $(PATCHLIST) -x *svn*)
|
2007-01-08 17:28:01 -08:00
|
|
|
zip -T $@
|
2006-12-24 17:43:01 -08:00
|
|
|
|
2007-08-17 10:42:17 -07:00
|
|
|
install-data-local: $(BASEARCHIVE) $(PATCHARCHIVE)
|
2007-02-26 12:10:51 -08:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgdatadir)
|
2008-01-08 05:24:25 -08:00
|
|
|
$(INSTALL_DATA) $(BASEARCHIVE) $(DESTDIR)$(pkgdatadir)/$(BASEARCHIVE)
|
|
|
|
$(INSTALL_DATA) $(PATCHARCHIVE) $(DESTDIR)$(pkgdatadir)/$(PATCHARCHIVE)
|
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-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-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)
|