top_srcdir=../../.. top_builddir=$(top_srcdir) include $(top_srcdir)/makerules/common.mk AIVOLUTIONLIST= \ commands.txt \ multiplay GRIMLIST= \ components \ COPYING \ structs \ texpages \ wrf NEWST_TILESLIST= \ COPYING \ readme.txt \ texpages AIVOLUTIONARCHIVE=aivolution.wz GRIMARCHIVE=grim.wz NEWST_TILESARCHIVE=newst_tiles.wz CLEANFILES=$(AIVOLUTIONARCHIVE) $(GRIMARCHIVE) $(NEWST_TILESARCHIVE) .PHONY: all clean $(AIVOLUTIONARCHIVE) $(GRIMARCHIVE) $(NEWST_TILESARCHIVE) all: ifdef INSTALLER all: $(AIVOLUTIONARCHIVE) $(GRIMARCHIVE) $(NEWST_TILESARCHIVE) endif stamp: touch stamp $(AIVOLUTIONARCHIVE): $(basename $(AIVOLUTIONARCHIVE)) stamp $(patsubst %,$(basename $(AIVOLUTIONARCHIVE))/%,$(AIVOLUTIONLIST)) (cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$