Code: Select all
name := DaggerfallUnity
version := 2018.2.11f1
.PHONY: all
all:
$(HOME)/Unity/Hub/Editor/$(version)/Editor/Unity -quit -batchmode -logFile stdout.log -buildTarget linux64 -buildLinux64Player "build/$(name).x86_64"
.PHONY: clean
clean:
rm -rf build/$(name)_Data
rm -f "build/Daggerfall Unity Manual.pdf"
rm -f build/$(name).x86_64
.PHONY: realclean
realclean: clean
rm -rf Library
.PHONY: distclean
distclean: realclean
rm -rf Assets
git reset --hard
git checkout . -f
git submodule update --checkout -f
unibuild - the little kludge that could
The key thing about this Makefile is how and when to use either "realclean" or "distclean":
realclean is going to clear out the "Library" cache which Unity generates on build - use this to do a clean rebuild
distclean is going to fully clear and reset changes that Unity caused - use this when changing unity versions
P.S.
You've probably noticed that I'm not a "constant-communication" type.
Beyond the fear I harbor toward all others, most people seem to find my communication annoying, needy, presumptuous, etc.