mirror of
https://github.com/ViViDboarder/docset-sfdc.git
synced 2024-12-22 13:17:44 +00:00
67 lines
1.2 KiB
Makefile
67 lines
1.2 KiB
Makefile
.PHONY: default
|
|
default: all
|
|
|
|
.PHONY: all
|
|
all: package-apex package-vf package-lightning
|
|
|
|
vendor:
|
|
dep ensure
|
|
|
|
docset-gen: vendor
|
|
go build -i -x -o docset-gen ./SFDashC/
|
|
|
|
.PHONY: run-apex
|
|
run-apex: clean-index docset-gen
|
|
./docset-gen apexcode
|
|
|
|
.PHONY: run-vf
|
|
run-vf: clean-index docset-gen
|
|
./docset-gen pages
|
|
|
|
.PHONY: run-lightning
|
|
run-lightning: clean-index docset-gen
|
|
./docset-gen lightning
|
|
|
|
package-apex: run-apex
|
|
./package-docset.sh Apex
|
|
|
|
.PHONY: package-vf
|
|
package-vf: run-vf
|
|
./package-docset.sh Pages
|
|
|
|
.PHONY: package-lightning
|
|
package-lightning: run-lightning
|
|
./package-docset.sh Lightning
|
|
|
|
.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!"
|
|
|
|
.PHONY: clean-index
|
|
clean-index:
|
|
rm -f ./build/docSet.dsidx
|
|
|
|
.PHONY: clean-package
|
|
clean-package:
|
|
rm -fr *.docset
|
|
|
|
.PHONY: clean-archive
|
|
clean-archive:
|
|
rm -f *.tgz
|
|
|
|
.PHONY: clean
|
|
clean: clean-index clean-package clean-archive
|
|
rm -f docset-gen
|
|
|
|
.PHONY: clean-build
|
|
clean-build:
|
|
rm -fr ./build
|
|
|
|
.PHONY: clean-vendor
|
|
clean-vendor:
|
|
rm -fr ./vendor
|
|
|
|
.PHONY: clean-all
|
|
clean-all: clean clean-build clean-vendor
|