X-Git-Url: https://git.ladys.computer/Vocab/blobdiff_plain/7384274f479bec6a94d5b04b2e60220b54d6976a..e49ee9f69e664037e245510f07293c2fcd75ab31:/GNUmakefile diff --git a/GNUmakefile b/GNUmakefile index 72bf292..9be1646 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -34,7 +34,9 @@ SHUSHEOPTS := $(MAKEOPTS) SRCDIR='$(SRCDIR)' DATADIR='$(DATADIR)' BUILDDIR='$(BU YSEME := .πŸ‘₯πŸ“€ YSEMEOPTS := $(MAKEOPTS) BUILDTARGET='$(BUILDTARGET)' DESTDIR='$(DESTDIR)' SERVERPATH='lady/vocab' -xmls := $(wildcard $(DATADIR)/*/*) +PORT := 3000 + +xmls := $(wildcard $(DATADIR)/*/[0-9A-Za-z_]*) $(wildcard $(DATADIR)/*/Β¦*) # ━ Β§ Call out to β›©πŸ“° δΉ¦η€Ύ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -81,10 +83,14 @@ $(foreach xml,$(xmls),lint][$(xml)) : lint][% : .libxml2/xmllint .IGNORE : $(foreach xml,$(xmls),lint][$(xml)) ; -.PHONY : FORCE build clean dry-sync gone lint $(foreach xml,$(xmls),lint][$(xml)) list prebuild sync uninstall ; +.PHONY : FORCE build clean dry-sync gone lint $(foreach xml,$(xmls),lint][$(xml)) list prebuild serve sync uninstall ; gone : clean uninstall ; +serve : + @printf '%b\n' '\0033[1m\n\0033[7m NOTE: \0033[27m Visit to view the site.\n\0033[7m \0033[27m \n\0033[7m \0033[27m Press control + C to exit.\n\0033[22m' >&2 + @ruby ./scripts/serve.rb $(PORT) >&2 + uninstall : @for publicfile in $(patsubst %,"%",$(wildcard $(DESTDIR)/*)); do if $(GIT) check-ignore -q "$$publicfile"; then $(RM) -rf "$$publicfile"; fi; done