mirror of
				https://github.com/intel/isa-l.git
				synced 2025-10-29 20:59:43 +01:00 
			
		
		
		
	build: Add test to check for nmake consistency
Change-Id: I1180ba749d54e7ef433b01b33450e52ac5dbb2bb Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
		| @@ -1,11 +1,18 @@ | |||||||
|  | # Regenerate nmake file from makefiles or check its consistency | ||||||
|  |  | ||||||
|  | test_nmake_file: tst.nmake | ||||||
|  | 	@diff -u Makefile.nmake tst.nmake || (echo Potential nmake consistency issue; $(RM) tst.nmake; false;) | ||||||
|  | 	@echo No nmake consistency issues | ||||||
|  | 	@$(RM) tst.nmake | ||||||
|  |  | ||||||
| FORCE: | FORCE: | ||||||
| Makefile.nmake: FORCE | Makefile.nmake tst.nmake: FORCE | ||||||
| 	@echo Regenerating $@ | 	@echo Regenerating $@ | ||||||
| 	@echo '########################################################################' > $@ | 	@echo '########################################################################' > $@ | ||||||
| 	@cat LICENSE | sed -e 's/^/#/ ' >> $@ | 	@cat LICENSE | sed -e 's/^/#/ ' >> $@ | ||||||
| 	@echo '########################################################################' >> $@ | 	@echo '########################################################################' >> $@ | ||||||
| 	@echo ''			>> $@ | 	@echo ''			>> $@ | ||||||
| 	@echo '# This file can be auto-regenerated with $$make -f Makefile.unx $@' >> $@ | 	@echo '# This file can be auto-regenerated with $$make -f Makefile.unx Makefile.nmake' >> $@ | ||||||
| 	@echo ''			>> $@ | 	@echo ''			>> $@ | ||||||
| 	@echo -n 'objs =' >> $@ | 	@echo -n 'objs =' >> $@ | ||||||
| 	@$(foreach o, $(subst /,\\,$(objs:.o=.obj)), printf " %s\n\t%s" \\ $(o) >> $@; ) | 	@$(foreach o, $(subst /,\\,$(objs:.o=.obj)), printf " %s\n\t%s" \\ $(o) >> $@; ) | ||||||
|   | |||||||
| @@ -170,6 +170,11 @@ msg+=$'Custom hufftable build: Pass\n' | |||||||
|  |  | ||||||
| $MAKE -f Makefile.unx clean | $MAKE -f Makefile.unx clean | ||||||
|  |  | ||||||
|  | test_start "nmake_file_consistency" | ||||||
|  | $MAKE -f Makefile.unx test_nmake_file | ||||||
|  | test_end "nmake_file_consistency" $? | ||||||
|  | msg+=$'Nmake file consistency: Pass\n' | ||||||
|  |  | ||||||
| # noarch build | # noarch build | ||||||
| test_start "noarch_build" | test_start "noarch_build" | ||||||
| time $MAKE -f Makefile.unx -j $cpus arch=noarch $build_opt | time $MAKE -f Makefile.unx -j $cpus arch=noarch $build_opt | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Greg Tucker
					Greg Tucker