]> Lady’s Gitweb - Vocab/blobdiff - GNUmakefile
Make pcdm:File a siocactions:DigitalArtifact
[Vocab] / GNUmakefile
index 72bf2926996a29f4d453ec0f6e8d07ad447c6c08..9be16461f60c50194486562139aa09d09d0b8d58 100644 (file)
@@ -34,7 +34,9 @@ SHUSHEOPTS := $(MAKEOPTS) SRCDIR='$(SRCDIR)' DATADIR='$(DATADIR)' BUILDDIR='$(BU
 YSEME := .πŸ‘₯πŸ“€
 YSEMEOPTS := $(MAKEOPTS) BUILDTARGET='$(BUILDTARGET)' DESTDIR='$(DESTDIR)' SERVERPATH='lady/vocab'
 
 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 β›©πŸ“° δΉ¦η€Ύ β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”
 
 
 # β” Β§ Call out to β›©πŸ“° δΉ¦η€Ύ β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”β”
 
@@ -81,10 +83,14 @@ $(foreach xml,$(xmls),lint][$(xml)) : lint][% : .libxml2/xmllint
 
 .IGNORE : $(foreach xml,$(xmls),lint][$(xml)) ;
 
 
 .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 ;
 
 
 gone : clean uninstall ;
 
+serve :
+       @printf '%b\n' '\0033[1m\n\0033[7m NOTE: \0033[27m Visit <http://localhost:$(PORT)/> 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
 
 uninstall :
        @for publicfile in $(patsubst %,"%",$(wildcard $(DESTDIR)/*)); do if $(GIT) check-ignore -q "$$publicfile"; then $(RM) -rf "$$publicfile"; fi; done
 
This page took 0.223189 seconds and 4 git commands to generate.