2019-02-04 22:26:45 +00:00
|
|
|
# This makefile was automatically written by inweb -makefile
|
|
|
|
# and is not intended for human editing
|
|
|
|
|
|
|
|
ME = inweb
|
|
|
|
SAFETYCOPY = $(ME)/Tangled/inweb_dev
|
|
|
|
|
|
|
|
-include $(ME)/platform-settings.mk
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
2019-03-18 11:16:10 +00:00
|
|
|
all: $(ME)/platform-settings.mk $(ME)/Tangled/$(ME)
|
2019-02-04 22:26:45 +00:00
|
|
|
|
|
|
|
$(ME)/Tangled/$(ME): $(ME)/Contents.w $(ME)/Chapter*/*.w $(ME)/foundation-module/Contents.w $(ME)/foundation-module/Chapter*/*.w
|
|
|
|
$(call make-me)
|
|
|
|
|
|
|
|
.PHONY: force
|
|
|
|
force: $(ME)/platform-settings.mk
|
|
|
|
$(call make-me)
|
|
|
|
|
|
|
|
.PHONY: macos
|
|
|
|
macos:
|
|
|
|
cp -f $(ME)/Materials/macos-make-settings.mk $(ME)/platform-settings.mk
|
2019-02-10 23:08:53 +00:00
|
|
|
echo "=== Platform set to 64-bit MacOS. Now: make -f inweb/inweb.mk initial ==="
|
|
|
|
|
|
|
|
.PHONY: macos32
|
|
|
|
macos32:
|
|
|
|
cp -f $(ME)/Materials/macos32-make-settings.mk $(ME)/platform-settings.mk
|
|
|
|
echo "=== Platform set to 32-bit MacOS. Now: make -f inweb/inweb.mk initial ==="
|
2019-02-04 22:26:45 +00:00
|
|
|
|
|
|
|
.PHONY: windows
|
|
|
|
windows:
|
|
|
|
cp -f $(ME)/Materials/windows-make-settings.mk $(ME)/platform-settings.mk
|
2019-02-10 23:08:53 +00:00
|
|
|
echo "=== Platform set to Windows. Now: make -f inweb/inweb.mk initial ==="
|
2019-02-04 22:26:45 +00:00
|
|
|
|
|
|
|
.PHONY: linux
|
|
|
|
linux:
|
|
|
|
cp -f $(ME)/Materials/linux-make-settings.mk $(ME)/platform-settings.mk
|
2019-02-10 23:08:53 +00:00
|
|
|
echo "=== Platform set to Linux. Now: make -f inweb/inweb.mk initial ==="
|
2019-02-04 22:26:45 +00:00
|
|
|
|
|
|
|
.PHONY: unix
|
|
|
|
unix:
|
|
|
|
cp -f $(ME)/Materials/unix-make-settings.mk $(ME)/platform-settings.mk
|
2019-02-10 23:08:53 +00:00
|
|
|
echo "=== Platform set to generic Unix (non-Linux, non-MacOS, non-Android). Now: make -f inweb/inweb.mk initial ==="
|
2019-02-04 22:26:45 +00:00
|
|
|
|
|
|
|
.PHONY: android
|
|
|
|
android:
|
|
|
|
cp -f $(ME)/Materials/android-make-settings.mk $(ME)/platform-settings.mk
|
2019-02-10 23:08:53 +00:00
|
|
|
echo "=== Platform set to Android. Now: make -f inweb/inweb.mk initial ==="
|
2019-02-04 22:26:45 +00:00
|
|
|
|
|
|
|
.PHONY: initial
|
|
|
|
initial: $(ME)/platform-settings.mk
|
|
|
|
$(call make-me-once-tangled)
|
|
|
|
|
|
|
|
.PHONY: safe
|
|
|
|
safe:
|
|
|
|
$(call make-me-using-safety-copy)
|
|
|
|
|
|
|
|
define make-me-once-tangled
|
|
|
|
$(CC) -o $(ME)/Tangled/$(ME).o $(ME)/Tangled/$(ME).c
|
|
|
|
$(LINK) -o $(ME)/Tangled/$(ME) $(ME)/Tangled/$(ME).o $(LINKEROPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define make-me
|
|
|
|
$(ME)/Tangled/$(ME) $(ME) -tangle
|
|
|
|
$(call make-me-once-tangled)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define make-me-using-safety-copy
|
|
|
|
$(SAFETYCOPY) $(ME) -tangle
|
|
|
|
$(call make-me-once-tangled)
|
|
|
|
endef
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
$(INTEST) -from $(ME) all
|
|
|
|
|
2020-03-23 15:04:43 +00:00
|
|
|
.PHONY: commit
|
|
|
|
commit:
|
|
|
|
$(INWEB) -advance-build-file $(ME)/build.txt
|
2020-03-23 21:39:27 +00:00
|
|
|
$(INWEB) -prototype inweb/scripts/READMEscript.txt -write-me inweb/README.md
|
2020-03-23 15:04:43 +00:00
|
|
|
cd $(ME); git commit -a
|
|
|
|
|
2019-02-10 23:08:53 +00:00
|
|
|
.PHONY: pages
|
|
|
|
pages:
|
2020-03-26 23:01:14 +00:00
|
|
|
$(INWEB) -help > $(ME)/Figures/help.txt
|
2020-04-05 17:37:43 +00:00
|
|
|
$(INWEB) -show-languages > $(ME)/Figures/languages.txt
|
2020-04-12 22:48:34 +00:00
|
|
|
cp -f $(ME)/docs/docs-src/colony.txt $(ME)/Figures/colony.txt
|
2020-03-26 23:01:14 +00:00
|
|
|
$(INWEB) -advance-build-file $(ME)/build.txt
|
2019-03-12 23:32:12 +00:00
|
|
|
mkdir -p $(ME)/docs
|
2020-03-23 21:39:27 +00:00
|
|
|
rm -f $(ME)/docs/*.html
|
|
|
|
$(INWEB) -prototype inweb/scripts/READMEscript.txt -write-me inweb/README.md
|
2019-02-10 23:08:53 +00:00
|
|
|
mkdir -p $(ME)/docs/inweb
|
2020-03-23 21:39:27 +00:00
|
|
|
rm -f $(ME)/docs/inweb/*.html
|
2020-04-12 16:24:23 +00:00
|
|
|
mkdir -p $(ME)/docs/goldbach
|
|
|
|
rm -f $(ME)/docs/goldbach/*.html
|
|
|
|
mkdir -p $(ME)/docs/twinprimes
|
|
|
|
rm -f $(ME)/docs/twinprimes/*.html
|
2019-02-10 23:08:53 +00:00
|
|
|
mkdir -p $(ME)/docs/foundation-module
|
2020-03-23 21:39:27 +00:00
|
|
|
rm -f $(ME)/docs/foundation-module/*.html
|
2019-02-10 23:08:53 +00:00
|
|
|
mkdir -p $(ME)/docs/foundation-test
|
2020-03-23 21:39:27 +00:00
|
|
|
rm -f $(ME)/docs/foundation-test/*.html
|
2020-04-12 16:24:23 +00:00
|
|
|
$(INWEB) $(ME)/docs/docs-src/webs.inweb -weave-as GitHubCovers -weave-into $(ME)/docs -navigation $(ME)/docs/docs-src/nav-o.html -colony $(ME)/docs/docs-src/colony.txt
|
|
|
|
$(INWEB) $(ME)/Examples/goldbach -weave-docs -weave-into $(ME)/docs/goldbach -breadcrumb 'Home:../webs.html' -navigation $(ME)/docs/docs-src/nav.html -colony $(ME)/docs/docs-src/colony.txt
|
|
|
|
$(INWEB) $(ME)/Examples/twinprimes.inweb -weave-docs -weave-into $(ME)/docs/twinprimes -breadcrumb 'Home:../webs.html' -navigation $(ME)/docs/docs-src/nav.html -colony $(ME)/docs/docs-src/colony.txt
|
|
|
|
$(INWEB) $(ME) -weave-docs -weave-into $(ME)/docs/inweb -breadcrumb 'Home:../webs.html' -navigation $(ME)/docs/docs-src/nav.html -colony $(ME)/docs/docs-src/colony.txt
|
|
|
|
$(INWEB) $(ME)/foundation-module -weave-docs -weave-into $(ME)/docs/foundation-module -breadcrumb 'Home:../webs.html' -navigation $(ME)/docs/docs-src/nav.html -colony $(ME)/docs/docs-src/colony.txt
|
|
|
|
$(INWEB) $(ME)/foundation-test -weave-docs -weave-into $(ME)/docs/foundation-test -breadcrumb 'Home:../webs.html' -navigation $(ME)/docs/docs-src/nav.html -colony $(ME)/docs/docs-src/colony.txt
|
2019-02-10 23:08:53 +00:00
|
|
|
|
2019-02-04 22:26:45 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(call clean-up)
|
|
|
|
|
|
|
|
.PHONY: purge
|
|
|
|
purge:
|
|
|
|
$(call clean-up)
|
|
|
|
|
|
|
|
define clean-up
|
|
|
|
rm -f $(ME)/Tangled/*.o
|
|
|
|
rm -f $(ME)/Tangled/*.h
|
|
|
|
endef
|
|
|
|
|