2007-08-17 10:42:17 -07:00
SUBDIRS = mods
2008-05-23 15:01:07 -07:00
stamp :
touch stamp
%.wz : % stamp
( cd $( srcdir) /$< && zip -ru0 $( abs_builddir) /$@ $( filter-out stamp,$( filter-out $<,$( ^:$</%= %) ) ) -x '*svn*' || [ $$ ? -eq 12 ] && true ) # zip returns 12 on "nothing to do"
zip -T $@
rm -f stamp
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 \
2008-04-08 04:26:21 -07:00
sequenceaudio stats stats-sql 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
2008-05-23 15:01:07 -07:00
BASEARCHIVE = base.wz
PATCHARCHIVE = mp.wz
2007-01-08 17:28:01 -08:00
2008-05-23 15:01:07 -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
2008-05-23 15:01:07 -07:00
$(BASEARCHIVE) : $( BASELIST :%=$ ( basename $ ( BASEARCHIVE ) ) /%)
$(PATCHARCHIVE) : $( PATCHLIST :%=$ ( basename $ ( PATCHARCHIVE ) ) /%)
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)