Makefile cleanup #7
							
								
								
									
										16
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,6 +1,5 @@
 | 
				
			|||||||
# Needs python3 >= 3.9, sed, git for build, docker for tests
 | 
					# Needs python3 >= 3.9, sed, git for build
 | 
				
			||||||
.PHONY: build
 | 
					mail4one.pyz: requirements.txt mail4one/*py
 | 
				
			||||||
build: clean
 | 
					 | 
				
			||||||
	python3 -m pip install -r requirements.txt --no-compile --target build
 | 
						python3 -m pip install -r requirements.txt --no-compile --target build
 | 
				
			||||||
	cp -r mail4one/ build/
 | 
						cp -r mail4one/ build/
 | 
				
			||||||
	sed -i "s/DEVELOMENT/$(shell scripts/get_version.sh)/" build/mail4one/version.py
 | 
						sed -i "s/DEVELOMENT/$(shell scripts/get_version.sh)/" build/mail4one/version.py
 | 
				
			||||||
@@ -14,6 +13,13 @@ build: clean
 | 
				
			|||||||
		--main mail4one.server:main \
 | 
							--main mail4one.server:main \
 | 
				
			||||||
		--compress build
 | 
							--compress build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: build
 | 
				
			||||||
 | 
					build: clean mail4one.pyz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: test
 | 
				
			||||||
 | 
					test: mail4one.pyz
 | 
				
			||||||
 | 
						PYTHONPATH=mail4one.pyz python3 -m unittest discover
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: clean
 | 
					.PHONY: clean
 | 
				
			||||||
clean:
 | 
					clean:
 | 
				
			||||||
	rm -rf build
 | 
						rm -rf build
 | 
				
			||||||
@@ -59,6 +65,6 @@ update:
 | 
				
			|||||||
shell:
 | 
					shell:
 | 
				
			||||||
	MYPYPATH=$(shell ls -d `pipenv --venv`/lib/python3*/site-packages) pipenv shell
 | 
						MYPYPATH=$(shell ls -d `pipenv --venv`/lib/python3*/site-packages) pipenv shell
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
.PHONY: test
 | 
					.PHONY: dev-test
 | 
				
			||||||
test:
 | 
					dev-test:
 | 
				
			||||||
	pipenv run python -m unittest discover
 | 
						pipenv run python -m unittest discover
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user