docset-sfdc/Makefile

67 lines
1.2 KiB
Makefile
Raw Normal View History

2018-01-05 20:50:13 +00:00
.PHONY: default
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
2018-01-06 06:05:24 +00:00
vendor:
dep ensure
2018-01-06 06:05:24 +00:00
docset-gen: vendor
go build -i -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 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
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
package-vf: run-vf
2018-01-05 20:50:13 +00:00
./package-docset.sh Pages
2018-01-05 20:50:13 +00:00
.PHONY: package-lightning
package-lightning: run-lightning
2018-01-05 20:50:13 +00:00
./package-docset.sh Lightning
2018-01-05 20:50:13 +00:00
.PHONY: archive
archive:
find *.docset -depth 0 | xargs -I '{}' sh -c 'tar --exclude=".DS_Store" -czf "$$(echo {} | sed -e "s/\.[^.]*$$//" -e "s/ /_/").tgz" "{}"'
@echo "Archives created!"
2016-02-10 20:08:26 +00:00
2018-01-05 20:50:13 +00:00
.PHONY: clean-index
clean-index:
2017-07-15 21:24:10 +00:00
rm -f ./build/docSet.dsidx
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:
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
2018-01-06 06:05:24 +00:00
.PHONY: clean-vendor
clean-vendor:
rm -fr ./vendor
.PHONY: clean-all
clean-all: clean clean-build clean-vendor