| 
									
										
										
										
											2022-01-29 02:29:34 +00:00
										 |  |  | LIBFILES=$(wildcard src/*.ts) | 
					
						
							|  |  |  | TSFILES=$(wildcard *.ts) | 
					
						
							|  |  |  | ENTRIES=$(subst .ts,.js,$(TSFILES)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: all | 
					
						
							|  |  |  | all: $(ENTRIES) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-04 20:57:47 +00:00
										 |  |  | 04_base64.js: 04_base64.ts $(LIBFILES) | 
					
						
							|  |  |  | 	npx esbuild $< --outfile=$@ --platform=browser --target=es5 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-29 02:29:34 +00:00
										 |  |  | 83_numbers.js: 83_numbers.ts $(LIBFILES) | 
					
						
							|  |  |  | 	npx esbuild $< --bundle --outfile=$@ --platform=browser --format=iife --global-name=NUMBERS --target=es5 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %.node.js: %.node.ts $(LIBFILES) | 
					
						
							|  |  |  | 	npx esbuild $< --bundle --external:xlsx --outfile=$@ --minify --platform=node | 
					
						
							|  |  |  | 	sed -i '' 's/ts-node/node/g' $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %.js: %.ts $(LIBFILES) | 
					
						
							|  |  |  | 	npx esbuild $< --bundle --outfile=$@ --platform=browser --format=iife --global-name=$* --target=es5 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: clean | 
					
						
							|  |  |  | clean: | 
					
						
							|  |  |  | 	rm $(ENTRIES) |