We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b0471d commit deec8c6Copy full SHA for deec8c6
Makefile
@@ -0,0 +1,23 @@
1
+#!make
2
+
3
+# Special-Targets #
4
+# https://www.gnu.org/software/make/manual/html_node/Special-Targets.html
5
+.DEFAULT_GOAL := install
6
+SUBDIRS := $(wildcard Sources/*)
7
8
+.PHONY: force
9
+force:
10
11
+Submodule: force
12
+ git submodule update --recursive --remote
13
+ git add $@
14
+ git commit -m "Update $$(git submodule status Submodule/github/rest-api-description)" || true
15
16
+OPENAPI_FILES := $(addsuffix /openapi.yml, $(SUBDIRS))
17
+Sources/%/openapi.yml: Submodule
18
+ ln -sf ../../Submodule/github/rest-api-description/descriptions/api.github.com/api.github.com.yaml $@
19
20
+ git commit -m "Relink $@" || true
21
22
+.PHONY: install
23
+install: $(OPENAPI_FILES)
0 commit comments