aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-27 14:50:05 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-27 14:57:01 +0200
commitff566993defe78a705173ab7ba883c19b37c8143 (patch)
tree93ffecb6fbbdfdd5b9e877295401e3ab16d7bfef /Makefile
parenta4ebd0354b0bbbe81ea43d2b83fb21dd5a88d3e1 (diff)
downloadEpisodeBrowser-ff566993defe78a705173ab7ba883c19b37c8143.tar.gz
Support Debug/Release configurations.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f6d8bee..9c63d23 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
SYSTEM ?= vs2019
+CONFIG ?= Debug
+MAKEFLAGS += --no-print-directory
EXE = b/$(SYSTEM)/EpisodeBrowser.exe
ifneq ($(SYSTEM), mingw)
@@ -6,9 +8,13 @@ EXE = b/$(SYSTEM)/Debug/EpisodeBrowser.exe
endif
all:
+ifeq ($(SYSTEM), mingw)
+ cd b/$(SYSTEM) && cmake -DCMAKE_CONFIGURATION_TYPES=$(CONFIG) -G "Unix Makefiles" ../../c
cd b/$(SYSTEM) && cmake --build . -j
-ifneq ($(SYSTEM), mingw)
- cp x/l/libxml2.dll b/$(SYSTEM)/Debug
+else
+ cd b/$(SYSTEM) && cmake -DCMAKE_CONFIGURATION_TYPES=$(CONFIG) -G "Visual Studio 16 2019" ../../c
+ cd b/$(SYSTEM) && cmake --build . -j --config $(CONFIG)
+ cp x/l/libxml2.dll b/$(SYSTEM)/$(CONFIG)
endif
cp $(EXE) "C:\Users\John\Desktop\Delat"