From e6c5025f8c6bcd2582babc68cef2356282bea79f Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos-Pita Date: Sat, 20 Jan 2018 14:51:02 +0100 Subject: [PATCH 1/4] Added a makefile to automatize the installation --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7e2f175 --- /dev/null +++ b/Makefile @@ -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: + $(CP) -f ./*.sd7 $(PREFIX)/ + $(CP) -f ./missions/*.sd7 $(PREFIX)/ From 6e21b32fe902c6322055f4c8ad490f0f18f9c3fe Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos-Pita Date: Sat, 20 Jan 2018 14:52:47 +0100 Subject: [PATCH 2/4] Added compilation as a dependency of installation (to can type just 'make install') --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e2f175..a883984 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,6 @@ clean: # Installing # ========== -install: +install: all $(CP) -f ./*.sd7 $(PREFIX)/ $(CP) -f ./missions/*.sd7 $(PREFIX)/ From 44cf773bdeb72a7cc4346b1fca9db31052764cd4 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos-Pita Date: Sat, 20 Jan 2018 14:51:02 +0100 Subject: [PATCH 3/4] Added a makefile to automatize the installation --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7e2f175 --- /dev/null +++ b/Makefile @@ -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: + $(CP) -f ./*.sd7 $(PREFIX)/ + $(CP) -f ./missions/*.sd7 $(PREFIX)/ From f3703d2b791447972ac80eb656c925837faf9688 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos-Pita Date: Sat, 20 Jan 2018 14:52:47 +0100 Subject: [PATCH 4/4] Added compilation as a dependency of installation (to can type just 'make install') --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e2f175..a883984 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,6 @@ clean: # Installing # ========== -install: +install: all $(CP) -f ./*.sd7 $(PREFIX)/ $(CP) -f ./missions/*.sd7 $(PREFIX)/