2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: default
|
2017-07-15 20:36:28 +00:00
|
|
|
default: all
|
2016-02-10 20:08:26 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: package-apex package-vf package-lightning
|
2017-07-15 20:36:28 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
docset-gen:
|
2017-05-05 21:32:33 +00:00
|
|
|
dep ensure
|
2018-01-05 20:50:13 +00:00
|
|
|
go build -x -o docset-gen ./SFDashC/
|
2016-02-10 20:08:26 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: run-apex
|
|
|
|
run-apex: clean-index docset-gen
|
|
|
|
./docset-gen apexcode
|
2016-02-10 20:08:26 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: run-vf
|
|
|
|
run-vf: clean-index docset-gen
|
|
|
|
./docset-gen pages
|
2018-01-05 17:57:11 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: run-lightning
|
|
|
|
run-lightning: clean-index docset-gen
|
|
|
|
./docset-gen lightning
|
2016-02-10 20:08:26 +00:00
|
|
|
|
2017-07-15 20:36:28 +00:00
|
|
|
package-apex: run-apex
|
2018-01-05 20:50:13 +00:00
|
|
|
./package-docset.sh Apex
|
2016-02-10 20:08:26 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: package-vf
|
2017-07-15 20:36:28 +00:00
|
|
|
package-vf: run-vf
|
2018-01-05 20:50:13 +00:00
|
|
|
./package-docset.sh Pages
|
2018-01-05 17:57:11 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: package-lightning
|
2018-01-05 17:57:11 +00:00
|
|
|
package-lightning: run-lightning
|
2018-01-05 20:50:13 +00:00
|
|
|
./package-docset.sh Lightning
|
2016-07-27 01:27:01 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: archive
|
2016-07-27 01:27:01 +00:00
|
|
|
archive:
|
2016-07-27 01:38:37 +00:00
|
|
|
find *.docset -depth 0 | xargs -I '{}' sh -c 'tar --exclude=".DS_Store" -czf "$$(echo {} | sed -e "s/\.[^.]*$$//" -e "s/ /_/").tgz" "{}"'
|
2016-07-27 01:27:01 +00:00
|
|
|
@echo "Archives created!"
|
2016-02-10 20:08:26 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: clean-index
|
2016-07-27 00:21:56 +00:00
|
|
|
clean-index:
|
2017-07-15 21:24:10 +00:00
|
|
|
rm -f ./build/docSet.dsidx
|
2016-07-27 00:21:56 +00:00
|
|
|
|
2018-01-05 20:50:13 +00:00
|
|
|
.PHONY: clean-package
|
|
|
|
clean-package:
|
2016-02-10 20:08:26 +00:00
|
|
|
rm -fr *.docset
|
2018-01-05 20:50:13 +00:00
|
|
|
|
|
|
|
.PHONY: clean-archive
|
|
|
|
clean-archive:
|
2016-07-27 01:27:01 +00:00
|
|
|
rm -f *.tgz
|
2018-01-05 20:50:13 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: clean-index clean-package clean-archive
|
|
|
|
rm -f docset-gen
|
|
|
|
|
|
|
|
.PHONY: clean-build
|
|
|
|
clean-build:
|
|
|
|
rm -fr ./build
|