Linux build makefile deployment?

Discuss coding questions, pull requests, and implementation details.
User avatar
Posts: 6
Joined: Tue Sep 25, 2018 1:32 pm

Re: Linux build makefile deployment?

Post by noabody » Sun Oct 14, 2018 1:57 pm


Code: Select all

name := DaggerfallUnity
version := 2018.2.11f1
.PHONY: all
	$(HOME)/Unity/Hub/Editor/$(version)/Editor/Unity -quit -batchmode -logFile stdout.log -buildTarget linux64 -buildLinux64Player "build/$(name).x86_64"

.PHONY: 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
I've reduced the Makefile to just the portion required. Visit my github for the current patch:
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

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.
Last edited by noabody on Sun Oct 14, 2018 3:56 pm, edited 4 times in total.

User avatar
Posts: 2172
Joined: Wed Jul 18, 2018 6:14 pm
Location: France

Re: Linux build makefile deployment?

Post by pango » Sun Oct 14, 2018 2:06 pm

I expected the hexadecimal number in the URL to be file-specific, but it is build-specific? Good spotting
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply