-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 731 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
appname = drag.app
archivedir = .archive
installdir = ~/Applications
archiveout = $(archivedir).xcarchive
installout = $(installdir)/$(appname)
sources = $(shell find . -name '*.swift' -type f)
newest = $(shell ls -dt $(1) | head -1)
.PHONY: install
install: $(installout)
$(installout): archive
@rm -rf $(installout)
@cp -r $(archiveout)/Products/Applications/$(appname)/ $(installout)
@echo INSTALLED
.PHONY: archive
archive: $(archiveout)
$(archiveout): $(sources)
@echo ARCHIVING ...
@xcodebuild -scheme drag -archivePath $(archivedir) archive >/dev/null
@echo ARCHIVE DONE
.PHONY: clean
clean:
@trash $(archiveout)
.PHONY: clean-derived-data
clean-derived-data:
@rm -rf ~/Library/Developer/Xcode/DerivedData