Simon Volpert zdoomrl / master Makefile
master

Tree @master (Download .tar.gz)

Makefile @masterraw · history · blame

# ZDoomRL - Gameplay Modifications for DoomRL Arsenal
# Author: Simon Volpert <simon@simonvolpert.com>
# Project page: https://simonvolpert.com/zdoomrl/
# This program is free software, released under the MIT license. See the LICENSE file for more information

zip_options = --recurse-paths --latest-time

.PHONY: all zetashop nukebarrel alwaysuv noperks asmflow

all: zetashop nukebarrel alwaysuv noperks asmflow

zetashop: ShopSys.o
	cd zetashop; zip $(zip_options) ../zetashop.pk3 *

nukebarrel: NukeBarrelMarkers.o
	cd nukebarrel; zip $(zip_options) ../nukebarrel.pk3 *

alwaysuv:
	cd alwaysuv; zip $(zip_options) ../alwaysuv.pk3 *

noperks:
	cd noperks; zip $(zip_options) ../noperks.pk3 *

asmflow: AutoAssembly.o
	cd asmflow; zip $(zip_options) ../asmflow.pk3 *

ShopSys.o:
	mkdir -p zetashop/acs
	acc zetashop/ShopSys.acs zetashop/acs/ShopSys.o

NukeBarrelMarkers.o:
	mkdir -p nukebarrel/acs
	acc nukebarrel/NukeBarrelMarkers.acs nukebarrel/acs/NukeBarrelMarkers.o

AutoAssembly.o:
	mkdir -p asmflow/acs
	acc asmflow/AutoAssembly.acs asmflow/acs/AutoAssembly.o

bundle:
	mkdir -p /tmp/zdoomrl
	unzip \*.pk3 -d /tmp/zdoomrl
	cd /tmp/zdoomrl; zip $(zip_options) ../zdoomrl.pk3 *
	mv /tmp/zdoomrl.pk3 .
	rm -rf /tmp/zdoomrl

clean:
	rm -rf tmp zetashop/acs nukebarrel/acs asmflow/acs acs.err zdoomrl.pk3 zetashop.pk3 nukebarrel.pk3 alwaysuv.pk3 noperks.pk3 asmflow.pk3