Skip to content

Commit

Permalink
Removing some Windows conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vocelia committed Jun 30, 2023
1 parent 5d05549 commit c0e975b
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,10 @@ INCLUDE = -Isrc/include
LDFLAGS = -lstdc++ -lwebsockets
ifeq ($(OS), Windows_NT)
TARGET = main.exe
cp -r lib/* $(OUTDIR)
else
TARGET = main
endif
ifeq ($(OS), Windows_NT)
RM = rmdir /S /Q
else
RM = rm -rf
endif
ifeq ($(OS), Windows_NT)
CP = xcopy /y /e
else
CP = cp -r
endif

.PHONY: build clean run test

Expand All @@ -33,13 +24,13 @@ test:

build:
mkdir $(OUTDIR)
$(CP) ui $(OUTDIR)
$(CP) data $(OUTDIR)
cp -r ui $(OUTDIR)
cp -r data $(OUTDIR)
mkdir $(OUTDIR)/logs
$(CXX) $(CXXFLAGS) ./$(OUTDIR)/$(TARGET) src/main.cpp src/config.cpp src/uigen.cpp src/exec.cpp src/misc.cpp src/wrapper/String.cpp $(INCLUDE) $(LDFLAGS)

clean:
$(RM) $(OUTDIR)
rm -rf $(OUTDIR)

run:
cd $(OUTDIR) && ./$(TARGET)

0 comments on commit c0e975b

Please sign in to comment.