Skip to content

Commit

Permalink
Merge pull request #1 from sanguinariojoe/master
Browse files Browse the repository at this point in the history
Installer
  • Loading branch information
sanguinariojoe committed Feb 28, 2018
2 parents efb5b36 + c4119fe commit e4e775b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
PREFIX=$(HOME)/.spring/games/
ZIP=7z a -ms=off
CP=cp

MISSIONS := $(wildcard missions/*.sdd)
COMP_MISSIONS := $(wildcard missions/*.sd7)

# Compilation targets
# ===================
all: s44_poland.sd7 s44_campaign.sd7 $(MISSIONS)

$(MISSIONS):
$(ZIP) $@.sd7 $@/*

s44_poland.sd7:
$(ZIP) $@ poland.sdd/*

s44_campaign.sd7:
$(ZIP) $@ menu.sdd/*

.PHONY: all $(MISSIONS)

# Cleaning
# ========
clean:
$(RM) -f ./*.sd7
$(RM) -f ./missions/*.sd7

# Installing
# ==========
install: all
$(CP) -f ./*.sd7 $(PREFIX)/
$(CP) -f ./missions/*.sd7 $(PREFIX)/

0 comments on commit e4e775b

Please sign in to comment.